Ambulatory medical apparatus and method using a telemetry system with predefined reception listening periods

ABSTRACT

An implanted medical device (e.g. infusion pump) and an external device communicate with one another via telemetry messages that are receivable only during windows or listening periods. Each listening period is open for a prescribed period of time and is spaced from successive listening periods by an interval. The prescribed period of time is typically kept small to minimize power consumption. To increase likelihood of successful communication, the window may be forced to an open state, by use of an attention signal, in anticipation of an incoming message. To further minimize power consumption, it is desirable to minimize use of extended attention signals, which is accomplished by the transmitter maintaining an estimate of listening period start times and attempting to send messages only during listening periods. In the communication device, the estimate is updated as a result of information obtained with the reception of each message from the medical device.

RELATED APPLICATIONS

[0001] This application claims the benefit of prior filed U.S.Provisional Patent Application No. 60/177,414; filed Jan. 21, 2000, byRonald J. Lebel, et al., and entitled “Medical Apparatus and MethodIncluding an Implantable Device and an External Communication Device”The entirety of this provisional application is hereby incorporatedherein by this reference, including appendices filed therewith and anyreferences incorporated therein by reference, as if set forth in fullherein.

FIELD OF THE DISCLOSURE

[0002] This invention relates generally to ambulatory medical systemsthat include a medical device and a control device that communicate viatelemetry and that initiate message reception during predefinedlistening periods. Preferred embodiments relate to implantable infusionpumps and external devices for communicating therewith.

BACKGROUND

[0003] Various ambulatory medical devices have been proposed and anumber of such devices are commercially available. These devicesinclude, for example, implantable infusion pumps, externally carriedinfusion pumps, implantable pacemakers, implantable defibrillators,implantable neural stimulators, implantable physiological sensors,externally carried physiologic sensors, and the like.

[0004] As appropriate operation of ambulatory medical devices may becritical to those patients being treated using those devices, and astelemetry communications between ambulatory medical devices andcontrollers can greatly enhance the convenience of using such devices,or even be an enabling necessity to the use of such devices (e.g.implantable devices with sophisticated functionality), the operation ofsuch medical devices can benefit significantly by use of telemetrysystems and protocols that have features/elements that lead tooptimization of various attributes. Such attributes may include (1)flexibility in communicating the wide variety signals that may be usefulto controlling and retrieving information from a sophisticated medicaldevice, (2) robustness in distinguishing actual signals from noise, (3)robustness in distinguishing valid signals from corrupt signals, (4)robustness in ascertaining when appropriate communication has occurredand when additional communication must be attempted, (5) a reasonableefficiency in communication time, and/or (6) a reasonable efficiency inelectrical power consumption associated with conveying information overthe telemetry system.

[0005] Implantable medical devices typically operate by battery power.The batteries may or may not be rechargeable. Higher consumption ofpower from an implantable medical device containing non-rechargeablebatteries leads to a shortening of the usable life of the device and anassociated increased frequency of surgery, potential pain, recovery, andinconvenience. Higher consumption of power from an implantable medicaldevice containing rechargeable batteries leads to more frequent chargingperiods for the batteries and associated inconvenience and may lead toan overall shortening of the usable life of the device. As such, whetheror not an implantable medical device contains rechargeable batteries ornon-rechargeable batteries, it is desirable to lower the powerconsumption of the device. As telemetry reception and transmission arehighly energy consumptive, it is desirable to minimize the operationtime of telemetry reception and transmission modules.

[0006] A telemetry reception module of a first device needs to (1) bepowered to listen for potential incoming messages from a second device,(2) stay powered during the entire receipt of the message, and (3)potentially be powered one or more repeated times to receive a duplicatemessage when the second device is expecting a response to its originalmessage and does not receive one. A telemetry transmission module of afirst device needs to (1) be powered so it can transmit a desiredmessage to a second device, and (2) potentially be powered one or moretimes to retransmit a duplicate message when the first device fails toreceive confirmation that original message was received by the seconddevice.

[0007] A need exists in the field for improved telemetryfeatures/elements that tend to minimize one or both of power on time fortelemetry reception modules and/or telemetry transmission modules toreduce power drain on batteries used in powering ambulatory medicaldevices and communicators. A need exists in the field to ensure thatdevice users are not inconvenienced with long delay times that may beassociated with inputting information into the communication device,transmitting information via telemetry to the medical device, andwaiting for confirmation that the transmitted information wasappropriately received and is was or will be appropriately acted upon.

SUMMARY OF THE INVENTION

[0008] It is a first object of certain aspects of the invention toreduce power consumption in an ambulatory medical system associated withreceiving messages via telemetry.

[0009] It is a second object of certain aspects of the invention toreduce power consumption in an ambulatory medical system associated withtransmitting messages via telemetry.

[0010] It is a third object of certain aspects of the invention to shiftpower consumption burdens associated with telemetry activities away froman implantable medical device to an external communication device.

[0011] It is a fourth object of certain aspects of the invention toachieve enhanced synchronization between timers in the medical deviceand in the communication device than is inherently achieved based onfrequency oscillation tolerance differences allowed in the principleoscillators used in the two devices.

[0012] Other objects and advantages of various aspects of the inventionwill be apparent to those of skill in the art upon review of theteachings herein. The various aspects of the invention set forth belowas well as other aspects of the invention not specifically set forthbelow but ascertained from the teachings found herein, may address theabove noted objects or other objects ascertained from the teachingsherein individually or in various combinations. As such, it is intendedthat each aspect of the invention address at least one of the abovenoted objects or address some other object that will be apparent to oneof skill in the art from a review of the teachings herein. It is notintended that all, or even a portion of these objects, necessarily beaddressed by any single aspect of the invention even though that may bethe case with regard to some aspects.

[0013] It is a first aspect of the invention to provide a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the CD telemetry system listensduring preselected outbound listening periods for at least a selectedtype of message from the MD telemetry system.

[0014] In a specific variation of the first aspect of the invention, themedical device is capable of initiating communication with thecommunication during outbound listening periods, and the communicationdevice additionally includes (a) a CD clock system; (b) CD monitoringsystem that monitors a CD time, based on the CD clock system, thatcorresponds to a selected portion of a message received by the CDtelemetry system from the MD telemetry system; and (c) a CD controlsystem for effectively comparing the CD time to an anticipated outboundtransmission start time by the MD telemetry system for that selectedportion of the message to adaptively adjust a subsequent outboundlistening period based, at least in part, on the comparison of the CDtime to the anticipated outbound transmission start time.

[0015] In another variation of the first aspect of the invention, the MDtelemetry system activates a window for receiving messages from the CDtelemetry system during prescribed inbound listening periods and whereinsuccessive prescribed inbound listening periods are separated by asmaller interval than an interval that separates successive outboundlistening periods.

[0016] A second aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the CD telemetry system does notsend out a message as the message is generated but instead delays thesending out of a message until a next prescribed inbound transmissionstart time occurs.

[0017] A third aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the MD telemetry system listensfor any messages coming from the CD telemetry system beginning atprescribed inbound listening start times for prescribed inboundlistening periods.

[0018] In a specific variation of the third aspect of the invention, thecommunication device attempts to anticipate the prescribed inboundlistening periods and sets inbound transmission start times tocorrespond to the anticipated prescribed inbound listening periods.

[0019] In another specific variation of the third aspect of theinvention, the prescribed inbound listening start times and prescribedinbound listening periods are determined and activated automaticallywithout microprocessor intervention.

[0020] A fourth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the MD telemetry system and the CDtelemetry send and receive messages using digital modulation anddemodulation.

[0021] In a specific variation of the eleventh aspect of the inventionthe digital modulation and demodulation uses spread spectrum technology.

[0022] In another specific variation of the eleventh aspect of theinvention, the MD telemetry system includes (1) a digital modulator, (2)a receiving amplifier, (3) a digital receiver, (4) a mixer, and (5) alow pass filter wherein at least two of (1)-(5) are combined into asingle integrated circuit or where all of (1)-(5) are combined into nomore than two integrated circuits.

[0023] A fifth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein at least one of the communicationdevice or the medical device sets a preamble length, for at least somemessages, as a function of at least the difference between a presenttime and a time of a previous communication.

[0024] In a specific variation of the fifth aspect of the invention, theestimated listening time is based, at least in part, on a timedifference between the present time and a time of a previously receivedmessage. In a further variation, the communication device derives theestimate. In still a further variation a transmission time is based, atleast in part, on a predefined desired transmission time as modified byan estimated amount of drift that may have occurred between a time baseused by the medical device and a time base used by the communicationdevice

[0025] A sixth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein at least one of the communicationdevice or the medical device determines an estimated listening time forthe other of the communication device or the medical device and sets atransmission start time as a function of the estimated listening time.

[0026] A seventh aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the medical device or thecommunication device comprises an oscillator circuit that produces apulse stream that oscillates at an initial frequency that is greaterthan a desired frequency and wherein signals from the oscillator circuitare passed through circuitry that removes selected pulses from an inputpulse stream such that a modified oscillator signal is produced having amodified pulse stream that oscillates with an average frequency closerto a desired frequency than the initial frequency.

[0027] In a specific variation of the seventh aspect of the invention,the circuitry comprises a counter that repetitively counts to a firstpredefined value and then removes a pulse from the initial pulse streamto produce the modified pulse stream. In a further variation, a timingsignal is generated from the modified pulse stream by utilization of acounter that counts to a second predefined value and then outputs apulse. In a further variation, the first predefined value is defined bysoftware. In still a further variation, the first predefined value issubject to modification during a normal course of operation of themedical system. In still a further variation, the modification of thefirst predefined value causes the modified pulse stream to oscillate ata frequency closer to the desired frequency than it otherwise would ifit remained unchanged. In still a further variation the modification ofthe first predefined value is at least in part based on a temperature ofthe oscillator circuit.

[0028] An eighth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein at least one of the medical deviceor the communication device periodically adjusts a concept of time tomatch at least in part a concept of time in the other of thecommunication device or the medical device.

[0029] In a specific variation of the eighth aspect of the invention,the concepts of time of the medical device and the communication deviceare used by each for controlling, at least in part, telemetry operationsof the medical device and communication device, respectively.

[0030] In another specific variation of the eighth aspect of theinvention, a first of the communication device or the medical deviceadjusts a first concept of time to match that of the second of thecommunication device or medical device, while the second of the medicaldevice or the communication device matches a second concept of time tothat of the first of the communication device or medical device.

[0031] A ninth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the communication device furthercomprises a CD timing module, a CD crystal oscillator, and at least oneCD temperature transducer, and wherein the CD timing module uses atleast the CD temperature transducer in combination with known propertiesof the CD crystal oscillator to modify a rate of tracking of time by theCD timing module.

[0032] In a specific variation of the ninth aspect of the invention, hemodified time is used in transmitting messages to the medical device. Ina further variation, the medical device listens only part of the timefor incoming messages from the CD telemetry system or transmitsunsolicited messages to the communication device only at selected times,and the communication device estimates the medical device's inboundlistening times or potential outbound transmission times based, at leastin part, upon at least one temperature measurement made since a lastmessage was exchanged between the medical device and the communicationdevice in combination with known variations in crystal oscillationfrequency with temperature.

[0033] A tenth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the medical device furthercomprises an MD timing module, an MD crystal oscillator, and at leastone MD temperature transducer, and wherein the MD timing module uses atleast the MD temperature transducer in combination with known propertiesof the MD crystal oscillator to modify a rate of tracking of time by theMD timing module.

[0034] An eleventh aspect of the invention provides a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the MD telemetry system isactivated to enable reception or transmission of messages only a portionof the time.

[0035] A twelfth aspect of the invention provides a medical system thatincludes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the medical device sends outunsolicited messages to the communication device.

[0036] A thirteenth aspect of the invention provides a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the medical device sends outboundmessages to the communication device and the communication devicereceives outbound messages from the medical device; wherein the medicaldevice receives inbound messages from the communication device and thecommunication device sends inbound messages to the medical device;wherein the medical device listens for inbound messages beginning at aninbound listening start time and continuing for an inbound listeningperiod; wherein the communication device listens for outbound messagesbeginning at an outbound listening start time and continuing for anoutbound listening period; wherein the medical device transmits outboundmessages beginning at an outbound transmission start time and continuestransmission of a selected portion of the outbound messages for anoutbound transmission period; wherein the communication device transmitsinbound messages beginning at an inbound transmission start time andcontinues transmission of a selected portion of the inbound messages foran inbound transmission period; wherein an interval exists betweensuccessive inbound listening periods; wherein an interval exists betweensuccessive outbound listening periods; and wherein at least a selectedone of (1) or (2) occurs: (1) at least one of the inbound transmissionperiod or the outbound transmission period is extended after a failureto communicate occurs; or (2) at least one of the inbound transmissionstart times or outbound transmission start times undergoes a shiftrelative to an anticipated inbound listening start time or ananticipated outbound listening start time, respectively; and whereinafter one or more extensions and/or one or more shifts, all portions ofthe interval between successive inbound or outbound listening periodswould be broadcast to during inbound transmission periods or outboundtransmission periods, respectively.

[0037] A fourteenth aspect of the invention provides a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein at least one of the MD telemetrysystem or the CD telemetry system is configured to establish framesynchronization and to confirm that a message is intended specificallyfor the medical device or the communication device, respectively, byconfirming receipt of a predefined identifier.

[0038] A fifteenth aspect of the invention provides a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein a timing associated with atransmission of a message or reception of a message, by one of themedical device or the communication device is based, at least in part,on an estimate of the amount of drift in time that has occurred betweena present time and a time of a previous synchronization of a timer inthe medical device and a timer in the communication device.

[0039] A sixteenth aspect of the invention provides a medical systemthat includes (a) an ambulatory medical device (MD) that includes MDelectronic control circuitry that further includes at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and (b) a communication device (CD) that includes CD electroniccontrol circuitry that further includes at least one CD telemetry systemand at least one CD processor that controls, at least in part, operationof the CD telemetry system and operation of the communication device,wherein the CD telemetry system sends messages to or receives messagesfrom the MD telemetry system, wherein the MD telemetry system does notsend out a message as the message is generated but instead delays thesending out of a message until a next prescribed outbound transmissionstart time occurs.

[0040] Additional specific variations, provide the medical devices ofeach of the above aspects and above noted variations as implantabledevices such as implantable infusion pumps, implantable physiologicalsensors, implantable stimulators, and the like, or external devices suchsubcutaneous delivery infusion pumps or sensors that ascertain aphysiological parameter or parameters from subcutaneous tissue or fromthe skin of the patient. Such infusion pumps may dispense insulin,analgesics, neurological drugs, drugs for treating AIDS, drugs fortreating chronic ailments or acute ailments. Sensors may be used todetect various physiological parameters such as hormone levels, insulin,pH, oxygen, other blood chemical constituent levels, and the like. Thesensor may be of the electrochemical type, optical type, and may or maynot be enzymatic in operation.

[0041] In even further variations of the above noted aspects, and abovenoted variations, one or more of the following is provided: (1) a firstportion of the MD telemetry system is incorporated into the MD processorand a second portion of the MD telemetry system is external to the MDprocessor, (2) a first portion of the CD telemetry system isincorporated into the CD processor and a second portion of the CDtelemetry system is external to the CD processor, (3) the MD processorincludes an MD central processing unit and at least one other MDfunctional module, (4) the CD processor includes a CD central processingunit and at least one other CD functional module, (5) the MD electroniccontrol circuitry includes at least one external MD functional module,other than a portion of the MD telemetry system, that is external to theMD processor, or (6) the CD electronic control circuitry includes atleast one external CD functional module, other than a portion of the CDtelemetry system, that is external to the CD processor.

[0042] Still additional aspects of the invention provide methodcounterparts to the above system aspects as well as to other functionalassociations and relationships, and processes that have not beenspecifically set forth above but will be understood by those of skill inthe art from a review of the teachings provided herein.

[0043] Further aspects of the invention will be understood by those ofskill in the art upon reviewing the teachings herein. These otheraspects of the invention may provide various combinations of the aspectspresented above as well as provide other configurations, structures,functional relationships, and processes that have not been specificallyset forth above.

BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above referred to objects and aspects of the presentinvention will be further understood from a review of the description tofollow, the accompanying drawings, and the claims set forth hereafter,wherein:

[0045]FIG. 1 a depicts a perspective view of the main body of theimplantable device of the first preferred embodiment;

[0046]FIG. 1b depicts a perspective view of the support and catheterassembly that attaches to the main body of the implantable device of thefirst preferred embodiment;

[0047]FIG. 2 depicts a perspective view of the external communicationdevice of the first preferred embodiment;

[0048]FIG. 3 depicts a block diagram of the main components/modules ofboth the implantable device and the external communication device of thefirst preferred embodiment;

[0049]FIG. 4a depicts a block diagram of components that may be used ina pulse stealing device as is used by both the implantable device andthe external communication device of the first preferred embodiment;

[0050]FIG. 4b depicts an example of the differences between a pulsestolen chain and a non-pulse stolen chain; and

[0051]FIG. 5 depicts a block diagram of a time synchronization modulethat is used in the first preferred embodiment.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

[0052] Various details about the structural and functional configurationand operation of preferred ambulatory medical devices and preferredcommunication devices are found in several US patent applications filedconcurrently herewith and incorporated herein by reference in theirentireties: (1) Docket No. USP-1075-A, (2) Docket No. USP-1076-A, (3)Docket No. USP-1078-A, (4) Docket No. U.S. Pat. No. 1079-A, and (5)Docket No. USP-1080-A.

[0053] U.S. patent application Ser. No. ______, filed on Jan. 22, 2001(concurrently herewith), by Starkweather, et al., entitled “AmbulatoryMedical Apparatus and Method Having Telemetry Modifiable ControlSoftware”, corresponding to Medical Research Group, Inc. Docket No.USP-1075-A, is hereby incorporated herein by this reference as if setforth in full herein. This application provides teachings concerning animplantable medical device (e.g. infusion pump) and handheldcommunication device wherein the implantable device is capable ofoperating under control of different software programs, wherein a firstprogram operates after resetting the implantable device and is notcapable of allowing significant medical functionality but is capable ofselected telemetry operations including telemetry operations that allowreplacement software to be downloaded, and wherein a second program maybe caused to take control of the device and enables medicalfunctionality and selected telemetry operations but is incapable ofreceiving replacement software. It is also taught that a software imagemay be received in multiple messages where each message is provided withits own validation code and wherein a validation code for the wholeimage is provided and wherein each provided validation code mustcompared to a derived validation code prior to accepting the validity ofthe replacement software.

[0054] U.S. patent application Ser. No. ______, filed on Jan. 22, 2001(concurrently herewith), by Lebel, et al., entitled “Ambulatory MedicalApparatus and Method Using a Robust Communication Protocol”,corresponding to Medical Research Group, Inc. Docket No. USP-1076-A, ishereby incorporated herein by the references as if set forth in fullherein. An implanted medical device (e.g. infusion pump) and externaldevice communicate with one another via telemetry wherein messages aretransmitted under a robust communication protocol. The communicationprotocol gives enhanced assurance concerning the integrity of messagesthat impact medical operations of the implantable device. Messages aretransmitted using a multipart format that includes a preamble, a framesync, a telemetry ID, data, and a validation code. The data portion ofthe message includes an op-code that dictates various other elementsthat form part of the message. The data portion may also includeadditional elements such as sequence numbers, bolus numbers, andduplicate data elements. A telemetry ID for the transmitting device maybe implicitly embedded in the message as part of the validation codethat is sent with the message and that must be pre-known by the receiverto confirm the integrity of the received message.

[0055] U.S. patent application Ser. No. ______, filed on Jan. 22, 2001(concurrently herewith), by Lebel, et al., entitled “Ambulatory MedicalApparatus with Hand Held Communication Device”, corresponding to MedicalResearch Group, Inc. Docket No. USP-1078-A, is hereby incorporatedherein by this reference as if set forth in full herein. Thisapplication provides teachings concerning an implantable medical device(e.g. infusion pump) and handheld communication device (CD) thatexchange messages via telemetry such that commands are supplied to theimplantable device and operational information is obtained therefrom.The CD is controlled, at least in part, by a processor IC according to asoftware program operating therein and provides feedback to a user via avisual display, an audio alarm, and a vibrational alarm, and allowsinput from the user via a touch sensitive keypad. Certain inputfunctions are restricted by password. The visual display includes anicon and fixed element display region and a bitmap display region. Thefixed element display region includes time and date displays, batteryand drug level displays that decrement, and a moving delivery statedisplay. Various screens allow operational or log information to bedisplayed and/or user entry of commands. Program features when disableare removed from a series of screen options that can be scrolledthrough.

[0056] U.S. patent application Ser. No. ______, filed on Jan. 22, 2001(concurrently herewith), by Starkweather, et al., entitled “Method andApparatus for Communicating Between an Ambulatory Medical Device andControl Device Via Telemetry Using Randomized Data”, corresponding toMedical Research Group, Inc. Docket No. USP-1079-A, is herebyincorporated herein by this reference as if set forth in full herein.This application provides teachings concerning an implantable medicaldevice (e.g. infusion pump) and handheld communication device thatcommunicate with one another via telemetry wherein transmitted messageshave enhanced numbers of and/or regularity of bit transitions tominimize the risk of synchronization loss between transmitted bits ofdata and received bits of data. It is taught that bit transitions forportions of messages may be enhanced by applying a pseudo-randomizationscheme to those portions of messages that are transmitted in a way thatallows the receiver to extract the original data from the receivedrandomized data. Preferred randomization techniques modify (i.e.randomize) the data using a CRC value that is being accumulated whilesimultaneously causing the modified data to modify subsequentaccumulation of the CRC itself. Upon reception, the reversal of datarandomization is then made to occur so that the intended message isappropriately received.

[0057] U.S. patent application Ser. No. ______, filed on Jan. 22, 2001(concurrently herewith), by Lebel, et al., entitled “MicroprocessorControlled Ambulatory Medical Apparatus with Hand Held CommunicationDevice”, corresponding to Medical Research Group, Inc. Docket No.USP-1080-A, is hereby incorporated herein by this reference as if setforth in full herein. This application provides teachings concerning animplantable medical device (e.g. infusion pump) and handheldcommunication device. wherein an implantable infusion pump possessesoperational functionality that is, at least in part, controlled bysoftware operating in two processor ICs which are configured to performsome different and some duplicate functions. The pump exchanges messageswith the external communication device via telemetry. Each processorcontrols a different part of the drug infusion mechanism such that bothprocessors must agree on the appropriateness of drug delivery forinfusion to occur. Delivery accumulators are incremented and decrementedwith delivery requests and with deliveries made. When accumulatedamounts reach or exceed, quantized deliverable amounts, infusion is madeto occur. The accumulators are capable of being incremented by two ormore independent types of delivery requests. Operational modes of theinfusion device are changed automatically in view of various systemerrors that are trapped, various system alarm conditions that aredetected, and when excess periods of time lapse between pump andexternal device interactions.

[0058] The first embodiment of the present invention provides a longterm implantable medical delivery system that controllably suppliesinsulin to the body of a patient afflicted with diabetes mellitus. Thisembodiment includes an implantable medical device and an externalcommunication device. In the most preferred embodiments, thecommunication device is a hand held device that is used directly by thepatient to interact with the medical device as opposed to being limitedto use by a physician, nurse, or technician. It is preferred that thecommunication device provide (1) the ability to send commands to themedical device, (2) receive information from the medical device, and (3)be able to present to the patient at least a portion of the informationit receives from the medical device. In preferred embodiments, thepatient interacts with the medical device via the communication deviceat least once per week, on average, more preferably at least once everyother day, on average, and most preferably at least once per day, onaverage.

[0059] The implantable medical device (MD) includes a biocompatiblehousing; a reservoir within the housing for holding a quantity ofinsulin; a side port that attaches to the side of the housing, acatheter, that connects to the side port; a pumping mechanism, withinthe housing for moving the insulin from the reservoir through thesideport and through the catheter to the body of the patient; andcontrol, monitoring, and communication electronics located within thehousing. In alternative embodiments various portions of implantablemedical device hardware may be located outside the housing. For example,the pumping mechanism or a telemetry antenna may be located within thesideport or other side mounted housing; or a telemetry antenna maymounted on the outside surface of the housing, or extend along thecatheter The external communication device (CD) communicates commands tothe medical device, receives information from the medical device, andcommunicates system status and system history to the patient. Theexternal communication device includes a housing; a keypad mounted onthe housing; a display forming part of the housing; and control,monitoring, and communication electronics located within the housing. Inalternative embodiments, the keypad may be replaced in whole or in partby a touch sensitive display or a voice recognition system. In addition,or alternatively, the display may be replaced in whole or in part by aspeech generation system or other audio communication system.

[0060] The outer appearance of the implantable device 2 is depicted intwo pieces in FIGS. 1a and 1 b and includes housing 6 having a drugoutlet port 8, and a refill port 12, a removable sideport 14 that mountsagainst the side of the housing 6 over outlet port 8, and a catheter 16having a distal end 18 and a proximal end that attaches to sideport 14.In alternative embodiments, the implantable device may take on adifferent shape and/or the sideport may be removed in favor of apermanently mounted catheter assembly.

[0061] The outer appearance of the external communication device 32 isdepicted in FIG. 2. The various components of the external communicationdevice are fitted in or on housing 34. Housing 34 is divided into afront portion 34 a and a back portion 34 b. The front portion 34 a isprovided with an opening in which an LCD panel 36 is positioned. Thepanel 36 has a lower portion that is a bit map display and an upperportion that provides icons and fixed element displays. The frontportion 34 a of the external communication device is also provided witha five-element keypad 38. A first key 38 a is not located under a raisedpad and does not provide tactile feedback when it is touched and may beused for special functions. The remaining four keys 38 b, 38 c, 38 d,and 38 e have raised pads that provide tactile feedback when they aredepressed. These remaining keys may be used in normal device operationand are known as the select key, the up arrow key, down arrow key, andthe activate key, respectively. The back portion 34 b of the housing isfitted with a door under which a compartment is located for holding areplaceable battery.

[0062]FIG. 3 depicts a simplified block diagram of various functionalcomponents or modules (i.e. single components or groups of components)included in the implantable medical device 2 and external communicationdevice 32. The external communication device 32 includes (1) a housingor cover 34 preferably formed from a durable plastic material, (2)processing electronics 42 including a CPU and memory elements forstoring control programs and operation data, (3) an LCD display 36 forproviding operation for information to the user, (4) a keypad 38 fortaking input from the user, (5) an audio alarm 44 for providinginformation to the user, (6) a vibrator 46 for providing information tothe user, (7) a main battery 52 for supplying power to the device, (8) abackup battery 54 to provide memory maintenance for the device, (9) aradio frequency (RF) telemetry system 56 for sending signals to theimplantable medical device and for receiving signals from theimplantable medical device, and (10) an infrared (IR) input/outputsystem 58 for communicating with a second external device.

[0063] The second external device may include input, display andprogramming capabilities. The second device may include a personalcomputer operating specialized software. The computer may be used tomanipulate the data retrieved from the communication device or themedical device or it may be used to program new parameters into thecommunication device or directly into the medical device, or even usedto download new software to the communication device or to the medicaldevice. The manipulation of the data may be used in generating graphicaldisplays of the data to help aid in the interpretation of the data. Suchdata interpretation might be particularly useful if the medical deviceprovides data concerning a physiological parameter of the body of thepatient, such as a glucose level versus is time. More particularly thecomputing power and display attributes of the second device might beeven more useful when the medical device includes both an implantedsensor (e.g. glucose sensor), or external sensor, and an implanted pump(e.g. insulin pump), or external pump, where the second external devicemay be used to enhance the ability to ascertain the effectiveness of thetwo devices working together. Successful control periods and problemcontrol periods could be more readily identified. In fact, if the twodevices work on a closed loop basis or semi-closed loop basis, theanalysis performable by the second external device may be useful inderiving new closed loop control parameters and/or in programming thoseparameters directly into the communication device or the medical deviceor devices. The implantable device 2 includes (1) a housing or cover 6preferably made of titanium that may or may not be coated to enhancebiocompatibility, (2) processing electronics 72 including two CPUs andmemory elements for storing control programs and operation data, (3)battery 74 for providing power to the system, (4) RF telemetry system 76for sending communication signals (i.e. messages) to the external deviceand for receiving communication signals (i.e. messages) from theexternal device, (5) alarm or buzzer 82 for providing feedback to theuser, (6) refill port 12 for accepting a new supply of drug as needed,(7) reservoir 84 for storing a drug for future infusion, (8) pumpingmechanism 86 for forcing selected quantities of drug from the reservoirthrough the catheter to the body of the patient, (9) sideport 14 forproviding a replaceable connection between the (10) catheter and thepump housing and for allowing diagnostic testing of the fluid handlingsystem to occur, and catheter 16 for carrying medication from theimplant location to the desired infusion location.

[0064] In this embodiment, the pump mechanism is preferably a low power,electromagnetically driven piston pump. Such as for example Model Nos.P650005 or P650009 as sold by Wilson Greatbatch Ltd. of Clarence, N.Y.which have stroke volumes of 0.5 microliters and draw under 7 mJ (e.g.about 6 mJ) per pump stroke and under 4 mJ (e.g. about 3 mJ) per pumpstroke, respectively. The pump mechanism dispenses a sufficiently smallvolume of insulin per stroke so that a desired level of infusionresolution is achieved. For example if an infusion resolution of 0.2units of insulin were desired when using U400 insulin, then a strokevolume of about 0.5 microliters would be appropriate. In otherembodiments other types of infusion pumps may be used, e.g. peristalticpumps.

[0065] The size of the reservoir is preferably large enough to holdsufficient insulin so that refilling does not have to occur too often.For example, it is preferred that time between refills be within therange of 1.5-4 months or longer, more preferably at least 2 months, andmost preferably at least 3 months. Opposing the containment of a largevolume of insulin, is the desire to keep the implantable device as smallas possible. In the present embodiment the implantable device andreservoir has been designed to hold about 13 ml of insulin. A preferredinsulin has a concentration of 400 units per milliliter and is availablefrom Aventis HOE 21 Ph U-400 from Aventis Pharma (formerly HoechstMarion Roussel AG, of Frankfurt am Main, Germany). This insulin is ahighly purified, semi-synthetic human insulin with 0.2% phenol as apreserving agent, glycerol as an isotonic component, TRIS as a buffer,plus zinc and Genopal® as stabilizing agents. This quantity and insulinconcentration allows about 2-4 months between refills. In otherembodiments higher insulin concentrations may be used (e.g. U-500 orU-1000) to increase time between refills or to allow reduction inreservoir size. In some embodiments, when higher concentrations areused, any quantized minimum delivery amounts may be reduced by modifyingthe pumping mechanism, control circuitry, or software control algorithmso that infusion resolution is not adversely impacted.

[0066] The external communication device contains appropriate softwareto provide proper control of the device including appropriatefunctionality to allow communication with the medical device, to allowadequate control of the operation of the medical device, and to giveappropriate feedback to the user regarding overall system operation. Themedical device is provided with appropriate software to allowcommunication with the external communication device, to allow safe andappropriate operation of the medical functionality of the device, and toallow direct feedback to the user concerning device status via theinternal alarm.

[0067] The control electronics of both the implantable device andexternal communication device are centered around microprocessor basedintegrated circuits, i.e. processor ICs, that are implemented in thepresent embodiment in the form of application specific integratedcircuits (ASICs). In the present embodiment, the control electronics ofthe implantable device are centered around two identical ASICs that aremounted on a hybrid circuit board. Two such ASICs are used in theimplantable device to increase operational safety of the device byconfiguring the device to require that the two ASICs act in conjunctionwith each other in order for medication infusion to occur. In somealternative embodiments a single ASIC may be used, or a single dualprocessor integrated ASIC may be used. In a single processor device oneor more circuits may be provided to monitor the operation of a CPU inthe processor to ensure it continues to operate properly in one or morekey functions. In the single dual processor integrated ASIC, dualcircuitry would be provided so that each processor could actindependently of the other. In the single dual processor embodiment, asingle off-circuit oscillator may be used to drive both processors oreach may have an independent oscillator. A single chain of timingcircuits could be used in driving both processors or independent chainsof timing circuits could be used. Furthermore, if a single oscillator isused to drive both processors, then one or more separate circuits suchas a counter and an RC timer may be used to verify appropriate operationof the oscillator and/or any particular timing circuit dependentthereon.

[0068] In different embodiments, more or less of the control electronicsmay be implemented within one or more processor ICs while any remainingportions may be implemented external to the processor IC(s). Theprocessor IC may be referred to as an MD processor if used in themedical device portion of the system or a CD processor if used in thecommunication device portion of the system. In other embodiments theprocess IC used in the communication device may be different, e.g. havea different CPU or different peripheral modules, from a processor ICused in the medical device. In embodiments where more than one processorIC is used in either the medical device or the communication device eachof the processors may be different. They may be specifically designedfor their intended roles when they perform at least partially differentfunctions. Depending on particular design constraints portions of theelectronics not embodied in the processor ICs may form part of one ormore hybrid circuit boards or be otherwise mounted within, on, or evenin some cases external to a device housing.

[0069] Each processor IC of the present embodiment includes a 16-bitcore CPU which is a CMOS low power version of the INTEL 8086 processorand various peripheral modules that are used for system control, dataacquisition, and interfacing with electrical components external to theprocessor IC. The peripheral modules of the processor IC of the presentembodiment include (1) a non-volatile memory interface module, e.g. aSEEPROM interface module, (2) a boot ROM module; (3) an SRAM module; (4)a memory decoder module; (5) a crystal oscillator module; (6) a timermodule; (7) a pump interface module; (8) a watchdog module; (9) an RFmodule; (10) an interrupt handler module; (12) an analog-to-digitalconverter module; (13) an LCD clock driver module; (14) an alarminterface module; and (15) first and second synchronous serial interfacemodules.

[0070] In alternative embodiments fewer, additional, or differentperipheral modules may be incorporated into the processor ICs. In oneextreme the processor IC may simply incorporate a CPU with all othermodules being external thereto. In the other extreme almost all, if notall, electronic components may be incorporated into a single processorIC. Intermediate alternatives might incorporate a single additionalmodule into the processor IC (in addition to the CPU), others mightincorporate more than one, e.g. 4 or more, 8 or more, or the like. Instill other alternatives, the number of peripheral modules or componentsin an entire device may be considered and more than a certain percentageof them incorporated into one or more processor ICs, e.g. more than 50%,more than 75%, or even more than 90%.

[0071] The processor ICs are responsible for basic system management andcommunication of information between the implantable device and theexternal communication device through the RF telemetry link. Thetelemetry systems of the present embodiment are implemented in partthrough electrical hardware and in part through software controlled by aprocessor IC.

[0072] In the present embodiment, most of the required electricalmodules for the implantable device are integrated within the processorICs. However, several are not. These additional modules include twoindependent crystal oscillators (one for each ASIC); two non-volatilememory modules (one for each ASIC), e.g. SEEPROM chips; a volatilememory module (used only by one of the ASICs), e.g. an SRAM chip; pumpdriver circuitry (partially controlled by the each ASIC); front endtelemetry system circuitry; and voltage measurement circuitry associatedwith the pump driver circuit; a buzzer; and a battery.

[0073] Within the implantable device telemetry operations are controlledby a single ASIC (sometimes known as the main processor) The otherprocessor (sometimes known as the monitor processor) controls the buzzerand is thus responsible for audio communications coming from theimplantable device. The medical functionality of the implantable device(i.e. the administration of insulin in the present embodiment) iscontrolled by both processors. To maintain the implantable device in afail safe operational mode, these two processors maintain an appropriatelevel of agreement concerning infusion instructions an error conditionresults and either pumping is halted or a system reset may be made tooccur. The main and monitor processors communicate with each otherthrough the use of hardwired serial input and output ports.

[0074] As with the implantable device, the control electronics of theexternal communication device are centered around an ASIC that controlsand interacts with a number of peripheral modules. These peripheralmodules include an LCD display and driver, an IR port and driver, acrystal oscillator, a keypad and keypad interface, power managementmodules and reset circuitry, external volatile memory (e.g. SRAM) andnon-volatile memory (e.g. SEEPROM), a buzzer, and front end telemetryhardware.

[0075] Basic timing for each of the medical device and the communicationdevice is provided by a low power crystal oscillator module within eachprocessor IC that is connected to an external crystal oscillator. In thepresent embodiment the crystal oscillators are configured to provide astable clock source of 1,049,100 MHz with a tolerance no greater than+/−500 parts per million (ppm) including drift due to aging, andvariation in oscillation due to temperature variations within a range of−10° to 50° C. This frequency and it tolerance are selected such thatthe lower extreme of the range is still slightly larger than a desiredfrequency (e.g. 1,048,576).

[0076] The clock source is used to drive a 20 bit system clock ripplecounter that is sometimes referred to as Counter B (CNT B). This ripplecounter is used to provide system clocks of various frequencies foroperation of all other modules. Based on the above noted toleranceallowance on the crystal oscillator frequency, drift in the concept oftiming between the medical device and the communication device can be aslarge as about 0.1% or about 3.6 seconds per hour. Though this level ofdrift may be acceptable for some purposes, it is not acceptable forothers. In particular it is not acceptable for maintaining accurate timeof day tracking over extended periods of time (e.g. 1 second shift perweek) and it is even less acceptable for maintaining a level of timesynchronization between the two devices that allows optimized efficiencyof telemetry operations (e.g. 1 millisecond every 4 hours).

[0077] A pulse stealer circuit is provided for precise system timing ofselected clock signals. In the present embodiment the pulse stealerfunction is applied to the clock signal that has a frequency, asprovided by the system clock ripple counter, that is slightly more thanan 8192 Hz target frequency. The pulse stealer circuit gives the abilityto periodically steal single pulses from a selected clock signal toproduce a clock signal of lower average frequency. In the presentembodiment the modified signal, or pulse stolen signal, is used as thesource for the lower frequency clocks that are also generated by systemclock ripple counter. As some lower frequency non-pulse stolen clocksignals are desired for various uses in the system they are derived fromhigher frequency signals that are extracted from the ripple counterabove the pulse stolen levels. In implementing pulse stealing for thepresent embodiment, the CPU loads a 16 bit value into two eight bitconfiguration registers. The timer whose signal is to be modified isused to cause a counter to count up from zero to the value loaded intothe registers. After the counter reaches the value specified in theregisters, a single pulse is removed from the output signal (stolen fromthe output signal) to provide a modified output signal. Then thecounting begins again from zero and the process is repeated over andover so that a modified output signal, or pulse train, having a desiredaverage frequency is generated.

[0078] A value of 0x0000 loaded into these registers disables the pulsestealer and allows the approximately 8,192 Hz clock to pass thoughunmodified (i.e. input signal=output signal).

[0079]FIG. 4a, presents a block diagram showing the primary elements ofa pulse stealing circuit: (1) a crystal clock 242, (2) a divide circuit244, (3) a pulse stealing circuit 246, and (4) a timer circuit 248.

[0080] In the present embodiment the crystal clock 242 operates at anominal frequency of 1,049,100 Hz+/−500 Hz producing pulse trainidentified as “t1”. The divide circuit 244 in the present embodimenteffectively divides by input frequency by a value X that is 128 andproduces pulse train “t2” of nominal frequency 8196 Hz+/−3.9 Hz. Thepulse stealing circuit removes a single clock pulse repetitively from t2to produce t3. The repetition rate is controlled by a programmed valueset in the pulse stealing circuit. The repetition rate is set to anappropriate value that adjusts the input frequency (t2) to that desiredby the timer circuit 248. In the present embodiment, it is desired thatthe pulse train t3 that feeds timer circuit 248 be precisely operatingat 8192 pulses/second.

[0081] The pulse stealing circuit includes a counter that runs off clocksignal t2. The counter begins counting at zero and counts up to a valueset in the above noted configuration registers. When the counter reachesthe programmed value, one clock pulse is removed from the signal t2 toproduce signal t3. The counter is reset to start the count again andcontinues in an endless loop.

[0082]FIG. 4b depicts a sample timing sequence for the input signal t2and output signal t3 of the pulse stealing circuit where the registervalue is set to five.

[0083] The timer circuit produces a pulse stream t3 having an effectiveaverage clock frequency of,${\left( {1 - \frac{1}{{Value} + 1}} \right)*\left( {{Frequency}\quad {of}{\quad \quad}{t2}} \right)},$

[0084] where “value” is the value entered into the configurationregisters.

[0085] The table presented below illustrates the effect of the pulsestealing register value on the timer circuit clock.

Pulse Stealing Impact

[0086] Timer Circuit Clock Frequency Value in the (t3) Relative to InputConfiguration Registers Frequency (t2) 1 ½ 2 ⅔ 3 ¾ 4 ⅘ 5 ⅚

[0087] In the present embodiment, the pulse stealing circuit is designedto achieve an effective average timer circuit clock frequency of 8192Hz. The required pulse stealing register value may be calculated from,${{DF} = {\left( {1 - \frac{1}{{Value} + 1}} \right)*{\left( {{crystal}\quad {frequency}} \right)/X}}},$

[0088] where DF is the desired frequency, and in the present embodimentis 8192 Hz, and where X is the amount by which the crystal frequency isdivided prior to entering the pulse stealer, and in the presentembodiment is 128. This equation may be manipulated to yield,${{value} = {\frac{{crystal}\quad {frequency}}{{{crystal}\quad {frequency}} - 1048576} - 1}},$

[0089] where the value used for X was 128.

[0090] The table below illustrates some example register values based onexample crystal frequency values. Sample Register Values Table CrystalFrequency Hz Register Value 1,048,576 Cannot calculate = 0 1,048,7008456 1,048,900 3236 1,049,100 2001 1,049,300 1448 1,049,500 11341,049,624 1000

[0091] If, for example, the crystal frequency was measured to be1,049,039 Hz. The calculated register value is 2264.74. However, sincein the present embodiment the counter only accommodates integer registervalues, the register value will be set to either 2265 or possibly 2264.As a result, by use of this register value, the average frequency ofsignal t3 will be brought as close as possible to the desired value.

[0092] A sample pulse stealing circuit for the present embodiment thatuses up to a 16 bit pulse stealing value might include a 16 bitregister, a 16 bit counter, a 16 bit compare logic block, and a logicgate such as an “and” gate that takes two inputs, t2 and a normally highsignal that is toggled low when the counter reaches the register valueand then is reasserted high when the counting starts over. The comparelogic block may be used to compare the value in the register to thevalue in the counter to determine if the two are equivalent. The comparelogic block may be based, for example, on 16 two-input AND gates whoseoutputs are fed into one or more additional AND gates to produce asingle output signal indicative of whether the count has been met. Asrequired, additional logic could be added as necessary, to interpret a0000h register value as disabling the pulse stealer.

[0093] Of course, in other embodiments the pulse stealing circuit may bedriven by a different signal t2 frequency or it may be driven directlyfrom the crystal clock. It may be made to steal more than oneconsecutive pulse. A different register size may be used. The signalsgenerated by the pulse stealer may be used either directly by a circuitthat is tolerant to a missing pulse or it may alternatively be used todrive one or more additional counters, or “divide by” circuits, whereinwith each subsequent reduction in frequency, the uniformity of the finalpulse train is improved as well as any difference between the modifiedfrequency and the desired frequency.

[0094] In other alternative embodiments, pulse stealing circuits may beindependently used on multiple modules or they may be stacked in seriesto provide an even more accurate average signal pulse frequency. Theregister value may be set once and then let alone or alternatively, itmay be changed periodically based on a defined criteria. For example, ifa given crystal oscillator circuit is known to vary its oscillationfrequency with temperature, or other parameter, the parameter may bemeasured and a revised value determined. The revised value may bedetermined by use of a look up table, calculation, or the like and theninserted into the register or otherwise used to institute pulsestealing.

[0095] As another example, if an increment in time as registered by asecond clock were compared to the same increment of time as measured bya first clock, a drift rate or amount could be derived. The drift rateor amount could then be used to calculate a revised pulse stealing valueor additional pulse stealing value for one or both of the clocks so asto more closely synchronize their operation.

[0096] As further example, if the count value entered in the registersis not precisely the desired value, the value entered into the registermay be periodically varied so that the average value in the register iscloser to the desired value. As such, in one implementation the valuesentered into the register may alternate between the two values thatbound each side of the desired value. The proportion of the time thateach of the bounding values is used may be based on the proportions ofthe differences between the desired value and each of the two boundingvalues. The period of time over which each value is used prior toswitching to the other value may vary depending on the amount of errorthat is allowed to build up. For example, the period may be smaller thanone minute or larger than one day. In other alternatives, otherimplementations are possible, for example where one of the alternativevalues used is something other than an immediately bounding value.

[0097] In the present embodiment telemetry reception and transmissiontiming by both the medical device and the communication device are basedon time periods that are derived from the pulse stolen clock signals. Asthese pulse stolen clock signals have truer frequencies (on average)than do the signals generated by the principle oscillator, the telemetrytiming between the two devices will stay better synchronized.Furthermore as the incrementing of the time of day clock in thecommunication device is also is derived from the pulse stolen oscillatorsignals, the time of day clock remains better synchronized to the actualtime than it otherwise would have been. The pulse stolen clock signalsare not used for driving circuits or functions that cannot toleratemissing pulses, e.g. pulse trains that are transmitting telemetry data.

[0098] The telemetry system for the implantable device and the externalcommunication device provide a half-duplex link between each other usinga carrier frequency of about 250 kHz (e.g. about 2^ 18 Hz) and a datasignal having a frequency of about 8 kHz (e.g. about 2^ 13). Thetransmitter hardware uses an 8 kHz data signal to modulate the carriersignal to generate signals that will be transmitted by the antenna. Thereceiver hardware receives the modulated signal and demodulates it toextract the 8 kHz data signal. Both the implantable device and theexternal communication device have transmit and receive capabilities toallow two-way communication.

[0099] Most of the RF telemetry circuits necessary for communicationbetween the external communication device and the implantable device areimplemented in the processor IC. In order to minimize the digital noiseinterference that the processor IC might impart to the weak RF signalsthat are being received, a high-gain RF amplifier is implementedoff-chip. Also an RF antenna, that is used for both transmission andreception, and circuitry to select between reception and transmissionare implemented off-chip. The remaining analog sections and all thedigital demodulation circuits are implemented in the processor IC.

[0100] The RF module of the processor IC outputs in phase and quadraturephase signal components for combined transmission by the externalantenna. The RF module also supplies a control signal that is used toswitch between a transmission configuration and a receptionconfiguration. The RF module receives as inputs signals from theamplification circuitry.

[0101] A Quadrature Fast Acquisition Spread Spectrum Technique (QFAST®)is used as the modulation technique. QFAST® modulation is based on anOffset Quadrature Phase Shift Keying (QPSK) modulation technique. Inthis technique, data generated by the CPU modulates clock signals at thecarrier frequency. As a result of quadrature modulation, in-phase andquadrature-phase components of the given data stream are generated. Thetwo components are then applied to opposite ends of the external antennaso that a combined signal is transmitted.

[0102] The transmitter section of the telemetry system receives bytewide parallel data packets from the CPU and then loads the data into aparallel-to-serial shift register. The serial data is then sent to theQFAST® RF modulation transmitter section to modulate two quadratureclock signal components each operating with a carrier frequency of about218 Hz) and shifted in phase relative to each other by 90 degrees. Thetwo components are then delivered to opposite ends of the antenna. Aslong as there is data in the transmitter parallel-to-serial shiftregister, the RF transmitter remains activated. If the transmitterdoesn't have data available when the next byte is to be transmitted themessage is considered to have been completely transmitted and the CPUshuts off the transmitter circuitry so as to minimize continued powerdrain.

[0103] As noted above, external to the processor IC, the received RFsignal is amplified by a high gain receive amplifier. A bandpass filteris used to attenuate out-of-band components such as those due to AMradio stations. The amplified RF signal then enters a mixer in the RFmodule of the processor IC and is converted to baseband using twomixers, one in-phase mixer and one quadrature phase mixer both at thecarrier frequency. The mixer outputs are the quadrature components ofthe baseband signals. An integrator & dump function in the RF modulethen removes the sum frequency (2fc) and high frequency noise (i.e.acting as a low pass filter) from each of the two signals. The processedsignals are then digitized using a comparator and passed to thedemodulator where the data and clock are recovered.

[0104] In QFAST®, data rate adaptability is accomplished through aspread-spectrum “coding gain” concept, with the spreading code being asimple clock. The modulation produced by the QFAST® modulator isdemodulated in a manner which delivers both clock and data. All of theQFAST® modulation and demodulation circuits are digital and areincorporated into the processor IC.

[0105] The QFAST® technique provides a communication system with anumber of attributes: (1) it extracts the clock from the received signalwithout a clock recovery loop; (2) it provides demodulation of datawithout phase ambiguity and without the requirement for synchronousdemodulation; (3) it makes effective use of the available transmissionbandwidth, (4) it results in fast acquisition of the message signal; (5)it is relatively immune to the effects of highly dispersive anddistorting propagation media; (6) it does not require regeneration of aphase-coherent local replica at the receiver of the transmitted carrier;(7) it does not require resolution of ambiguity between the in-phase andquadrature-phase channels in the receiver; and (8) it does not exhibitdata phase ambiguity.

[0106] Further detail about QFAST® (Quadrature Fast Acquisition SpreadSpectrum Technique) may be found in U.S. Pat. No. 5,559,828, entitledTransmitted Reference Spread Spectrum Communication Using a SingleCarrier with Two Mutually Orthogonal Modulated Basis Vectors, byArmstrong, et al.

[0107] The RF module in the processor IC consists of timing circuitry,circuitry to maintain time synchronization between the implantabledevice and the external communication device, a digital RF transmittersection that includes a QFAST® RF modulation transmitter, an analogreceive module, and a digital receive section that includes a QFAST® RFmodulation receiver.

[0108] The RF communication between the implantable device and theexternal communication device occurs in the form of messages (sometimesreferred to as communication signals or packets) that are passed backand forth between the two devices. In this embodiment these messageshave a multi-part format or protocol: (1) preamble, (2) frame sync, (3)telemetry identifier, and (4) data.

[0109] In other embodiments other multipart formats may be used. Forexample, the multipart format might consist of (1) a preamble, (2) atelemetry identifier, and (3) data. In still other embodiments thepreamble and frame sync may be combined into a single entity, or thetelemetry identifier and the frame synch may be combined into a singleentity, or even all of the preamble, frame sync, and telemetryidentifier may be combined into a single entity such that thefunctionality of associated with these individual elements of themessages of the present embodiment may be performed simultaneously or inseries based on a single but repeated pattern of information.

[0110] For communications from the implantable device to the externalcommunication device the preamble is a repeating pattern of “10”, i.e.10101010. This alternating pattern of ones and zeros is broadcast for8-bit times. This pattern is considered the standard preamble pattern.In other embodiments this standard preamble pattern may be differentfrom that noted above (e.g. it may be a repeated pattern of “01” insteadof “10”). Though, unnecessary, the standard preamble need not transitionwith every other bit though, as a certain number of bit transitions aretypically necessary to establish bit synchronization, the moretransitions, the shorter the minimum length that the preamble can take.

[0111] For communications from the external communication device to theimplantable device, the preamble is either of the standard preamblepattern but applied for an extended number of bit times (e.g. 24, 48, or96) or is of an attention preamble pattern that is applied for,typically, even a longer extended number of bit times. In otherembodiments, not only may the preamble used by the implantable deviceand the external communication device have different lengths as used inthis embodiment, they may also use different standard preamble bitpatterns. Of course in still other embodiments, a same preamble lengthmay be used by both the implantable device and the externalcommunication device whether or not the same standard preamble bitpattern is used. The attention preamble pattern is formed of a repeatedpattern of “110110 . . . 110”. In other embodiments, other attentionpreamble patterns may be used (e.g. repetitions of “011”, “100”, “001,“1011”, and the like).

[0112] The preamble, whether of the standard pattern or the attentionpattern, is used so that the RF reception hardware can establish bitsynchronization (i.e. bit boundary recognition) of the incoming data.However, the attention preamble is further used to get and hold thereceiver's attention for a defined period of time. As long as theattention preamble is being received, the receiver's hardware will stayon and continue tracking the signal in anticipation of an incomingmessage. In other embodiments, the concept of a standard preamblepattern that will not hold the receiver's attention may be dispensedwith in favor of always using a preamble that is in effect an attentionpreamble.

[0113] The attention preamble is considered to be lost, or no longerbeing received, when the receiver receives more than 2 inappropriate bitvalues during receipt of any 64-bits or when the frame sync pattern isreceived.

[0114] Before beginning error detection, the receiver's hardware firstrequires that the receipt of the attention preamble be established. Inestablishing receipt of the attention preamble the receiver's hardwaremay load the received bits into a shift register and may then comparethe shifting pattern to a predefined pattern of selected length and thenmay consider the receipt of the attention preamble to be establishedonce the comparison indicates a match of sufficient length has occurred.The receive hardware then continues to compare received bits topredicted bits based on the pattern established. A bit counter isincremented with each bit received and an error counter is incrementedwith each error detected. The bit counter is reset whenever an error isdetected. The error counter is reset whenever the bit counter reach apreset value. If the error counter should reach a predefined erroramount, the established attention preamble is considered to have beenlost and if the receiver is still operating within its listening period,the receiver's hardware continues its process of trying to establishreceipt of attention preamble. The parameters associated withestablishing receipt of the attention preamble and associated with thesetting of error tolerances may be hardcoded into the system or they maybe programmable into hardware registers.

[0115] It is preferred that the above analysis be implemented inhardware due to the energy saving possible but in other embodiments theprocess may be implemented via software.

[0116] Of course in other embodiments, the error tolerance believedacceptable may be increased or decreased or defined in a differentmanner. For example, instead of using an error tolerance of 2-bits outof 64-bits, one might use a tolerance of 1/32. The tolerance may even beincreased to 2/32, 3/64, 4/64, or even higher. Alternatively, it may bedecreased to 1/64, 1/128 or even to zero.

[0117] The attention preamble may be used when there is some uncertaintyin the time synchronization of the two devices. The extra length of theattention preamble allows the receiver's reception window to open alittle latter than anticipated and to still have the receiver pick upthe entire message. The extra length of the attention preamble allowsthe receiver's reception window to open earlier than anticipated, solong as a minimum number of bits are heard by the receiver during thetime its reception window is normally open, and still have thereceiver's attention locked onto the preamble and have the receiverremain on as long as the attention preamble is being received, plus alittle more, in anticipation of receiving a frame sync pattern.

[0118] The receiver may miss some of the initial bits in the preamblebut a minimum number of bit transitions (e.g. 4, 6, or 8 transitions) ofthe preamble pattern must be received to ensure bit synchronizationbetween the transmitted message and the receiver. In the presentembodiment, the implantable device broadcasts with a minimal preamblesize in order to reduce power consumption within the implantable device.In other embodiments, the preamble used by the implantable device may belarger relative to the minimum number of bit transitions needed toestablish bit synchronization.

[0119] In the present embodiment, frame sync may actually be consideredbyte sync (i.e. frames are bytes) and is a single byte of a selectedpattern and is used so the receiver can obtain byte boundaries for thetransmitted data. In the present embodiment, the selected pattern is“10110000”. In other embodiments, other patterns, pattern lengths, andframe sizes may also be acceptable for use as frame sync so long as thepatterns (in combination with preamble or attention preamble patternsand any tolerances in their reception) cannot lead to errors in definingbyte transitions. In still other embodiments, the attention preamblepattern may be of the same bit pattern as the frame sync, in which case,some error tolerance may be allowed in the frame sync pattern and thereceiver's attention would be held until the pattern is lost or a validtelemetry ID pattern is received.

[0120] Even during the receipt of attention preamble (or other preamble)the receiver continually compares shifting bits that are received to theanticipated frame sync pattern. The Frame Sync byte may be detected byfeeding the incoming bit stream into a shift register and passing thebit values in the register to the inputs of an 8 input AND gate whoseinput assertion levels correspond to the anticipated frame sync pattern.

[0121] This comparison process continues so long as the receivercontinues to listen for an incoming message or until a valid frame syncpattern has been received. If the receiver is continuing to listenbeyond its normal reception window (i.e. listening period), due to thereception of an attention preamble, the listening will not stopimmediately upon the attention preamble being lost. The comparisonprocess for ascertaining the receipt of frame sync continues for anumber of bits after attention preamble is lost, even if the listeningperiod has ended, as its loss may be associated with the partial receiptof frame sync. Once frame sync is received a valid frame sync signal isasserted.

[0122] In the present embodiment, the telemetry identifier (i.e.telemetry ID) is a 3-byte value that is used to ensure that only theintended receiver receives a message. The value of all “1s” indicates auniversal message that is to be received by all receivers, otherwise thetelemetry ID must be agreed upon between the receiver and transmitter. Aunique ID is provided for each implantable device and each externalcommunication device during manufacturing. Only the externalcommunication device can transmit a message using the universal ID code.The telemetry IDs that the receiver will consider to be valid are the IDof the receiver or the universal ID. All other incoming bit patternswill be rejected with the result that the receiver will be either turnedoff or will start again looking for a valid frame sync pattern attentionpreamble. In alternative embodiments, instead of the receiver acceptingonly its own ID (in addition to the universal ID) it may instead acceptthe ID of the transmitter. In other alternative embodiments, a differentlength preamble may be used by the implantable device and the externalcommunication device. In still further alternatives, the telemetry IDsmay not be unique if it is believed that the chance of miscommunicationbetween devices is not a significant risk. In fact, if there is littlerisk of miscommunication, telemetry ID may be dropped from the messageprotocol.

[0123] Other embodiments may retain the concept of telemetry ID foreither the receiver or the transmitter or both but only pass thetelemetry ID information implicitly. Such implicit transfer might usethe telemetry ID information in generating a validation code (e.g. CRC)that is transferred with the message. In such cases the receiver couldcompare the received code to one or more different codes generated usingeach of the unique telemetry ID and the universal telemetry ID. Theseembodiments would be less preferred when power consumptionconsiderations are critical, as the telemetry system of the receiverwould have to remain on to receive the entire message in order todetermine whether the message was for it or not.

[0124] After a Frame Sync byte is detected, the processor IC hardwarecompares the next 24 bits of the incoming data to the personal ID bitsand to the universal ID which in this embodiment is fixed at 0xFFFFFF.The detection for the universal ID may be performed by passing theincoming data stream (for these 24 bits) through an XOR gate along withanother input fixed at a value of 1. The output of the XOR gate may thenbe fed into the data line of a D flip-flop while the clock line of theflip-flop is fed by a clock signal running at the bit rate. If the 24bits are processed without the output of flip-flop changing state avalid universal ID has been received. If the flip-flop does changestate, a universal failure signal is asserted. The incoming bits arealso passed through a first input of a second XOR gate while a secondinput of the gate is supplied by a multiplexer that provides bit valuesfrom the specific acceptable telemetry ID. The output of the XOR gate isprovided to a flip-flop in a manner analogous to that discussed abovefor detecting the universal ID. So long as the output of the flip-flopdoesn't change state during the processing of the 24 bits, a validspecific ID is considered to have been received, otherwise a specific IDfailure signal is generated. If and only if one of the ID failures isasserted, an ID valid signal is generated. If both ID failures aregenerated, the valid frame sync flag is de-asserted in which caselistening by the receiver may be aborted if the listening period hasexpired or listening for attention preamble and frame sync may continueif the listening period has not yet expired. If a valid telemetry ID isreceived, the receiver listens to the remaining portion of the message.

[0125] In alternative embodiments the frame sync and telemetry ID may becombined into a single entity that is identified as a whole as opposedto the present embodiment where the two pieces are looked for andidentified separately.

[0126] In the present embodiment, data is provided in an integer numberof bytes following the telemetry ID. In the present embodiment the firstbyte of the data indicates the message type. The first seven bits of thefirst byte is an operation code or op-code while the eighth bit iseither ignored or is set and interpreted as a sequence number (to bediscussed hereafter) dependent on whether or not the first seven bitscall for a sequence number or not. Each op-code, based on its nature, isfollowed by data in a defined number of bytes. The specific op-codeitself may dictate the number of bytes that follow or alternatively thespecific op-code may dictate that the number of bytes to follow may beextracted from the first byte or several bytes of information thatfollow it. In alternative embodiments, op-codes may have a differentlength, or not be used at all, the message length or message end may bedictated in other ways. Based on the op-code and potentially one or morebytes following it, the receiver knows exactly how many more bytes ofdata to listen for. After receiving those bytes, the receiver may beturned off to conserve power.

[0127] For some messages dealing with drug delivery, the data portion ofthe message may include a bolus number. The bolus number is similar tothe sequence number in that it is incremented by both the implantabledevice and external communication device under controlled conditions soas to reduce the possibility of bolus requests being delivered more thanonce when duplicate requests may be made as a result of the externalcommunication device failing to receive a confirmation that a previousrequest was received. The bolus number may be a single bit number insome embodiments but in more preferred embodiments it is a multibitnumber (e.g. 2-bit, 4-bit, 7-bit, 1-byte, or 2-bytes) so that it cantake on more than two values thereby making it less likely that an errorwill escape detection due to received and expected numbers erroneouslymatching. The incrementing of the bolus number may occur within theexternal communication device when it receives confirmation that amessage was correctly received and it may be incremented by theimplantable device when it correctly receives a bolus request. As suchwhen a duplicate request for a bolus is received by the implantabledevice it can recognize that the expected and received bolus numbers donot match and that requested bolus is not a new request. As such theimplantable device can respond to the repeated request that the boluswas correctly received and delivered (with out performing a seconddelivery and without incrementing its expectation of what the next bolusnumber will be).

[0128] In other embodiments, other incrementing numbers may be used tohelp ensure that only appropriate operation of the implantable deviceoccurs. For example, incrementing temporary basal rate numbers may beused, and/or separate incrementing numbers may be used for differenttypes of boluses that might be requested, e.g. immediate boluses andtemporary boluses. In still further alternatives, incrementing messagenumbers may be generally used. These message numbers may for example beused on all messages that have responses associated therewith. Once thereceiver confirms that a message was appropriately received it mayincrement its message number. Similarly, once the transmitter gets aresponse to the message it sent, it may likewise increment its messagenumber.

[0129] In the present embodiment, the data portion of the message endswith a one or 2-byte validation or error checking code (its type isdictated by the op-code included with the message). The preferred errorchecking code of this embodiment is in the form of a cyclic redundancycode (CRC). In other embodiments, the CRC may be replaced with anothererror checking code and/or it may be placed in a different part of themessage or even deleted from the message protocol completely. Theop-code may also be placed in another part of the message, or deleted infavor of other techniques that may be used in interpreting the messageand for determining when the end of the message has been properlyreceived.

[0130] In the present embodiment it is preferred that the CRC occur atthe end of the message as it simplifies the computational efficiency ofconfirming the validity of the message by the receiver. In alternativeembodiments, where message compilation and transmission occur inparallel, placing the CRC at the end of the message also allows the datato be processed and transmitted in a single pass without a need to havestorage space for the entire message available.

[0131] In order to keep power requirements low in a preferredimplementation, the external communication device and implantable deviceattempt to maintain a common time base, transmissions are set to startat specified times, and reception windows are set for specified timesand lengths. In this way, the receiver may remain in a powered down modemost of the time and can turn on to listen for a potential incomingmessage at the specified times for the specified lengths of time. If amessage is found to be incoming, the receiver stays on, otherwise itgoes back to sleep (i.e. power down mode).

[0132] In the present application, to avoid ambiguities in some portionsof the description relating to the timing associated with thetransmission and reception of messages, the following definitions willbe used: (1) “inbound” will generally refer to activities associatedwith telemetry reception by the medical device, whether implanted ornot, or to activities associated with telemetry transmission by thecommunication device, (2) “outbound” will generally refer to activitiesassociated with the telemetry transmission by the medical device,whether implanted or not, or to activities associated with telemetryreception by the communication device.

[0133] According to a telemetry timer in the medical device, outboundtransmissions begin at an “outbound transmission start time” andcontinue for an “outbound transmission period” which defines the periodthat the preamble portion of the message is sent which may be though ofin terms of time or in terms of the number of data bits. Similarly,according to a telemetry timer in the communication device, inboundtransmissions begin at an “inbound transmission start time” and continuefor an “inbound transmission period” which defines the period that thepreamble portion of the message is sent which may be thought of in termsof time or in terms of the number of data bits.

[0134] Furthermore, according to the telemetry timer in the medicaldevice, the telemetry reception system of the medical device beginslistening for messages at an “inbound listening start time” andcontinues to listen for an “inbound listening period” which may bethought of in terms of a time period or a given number of data bits.Similarly, according to the to the telemetry timer in the communicationdevice, the telemetry reception system of the communication devicebegins listening for messages at an “outbound listening start time” andcontinues to listen for an “outbound listening period” which may bethought of in terms of a time period or a given number of data bits.Additionally an “inbound listening interval” may be thought of as theinterval between the successive inbound listening start times while an“outbound listening interval” may be thought of as the interval betweenthe successive outbound listening start times. Throughout thespecification, the above timing elements may be referred to in differentways particularly when it is believed that the intended meaning is clearfrom the context of the description. However, when the precise meaningis required, descriptions will be based on the above definitions so asto remove ambiguity.

[0135] In the present embodiment time synchronization for telemetrycommunication is maintained using two techniques. The first techniqueperiodically determines the present difference in the concept of time(e.g. second boundaries) as held by the communication device and medicaldevice and the difference is used to reestablish synchronization of thetimers. In the present embodiment, reestablishment occurs on the part ofthe communication device each time it receives a valid communicationfrom the medical device.

[0136] The second technique determines a rate of drift that has occurredbetween the concept of time held by the communication device and that ofthe medical device. The determined rate of drift is used in combinationwith a determined lapse in time to estimate how much drift has occurred.This amount of drift is then used in shifting a listening start time ortransmission start time of a first one of the devices to match what isbelieved to be the potential transmission period or listening period ofa second one of the devices. In the present embodiment, the first deviceis the communication device, though in other embodiments it could be themedical device.

[0137] In alternative embodiments, variations in drift amounts may beused to extend listening periods and/or transmission periods. They mayalso be used to force the start of listening or transmission to lead thebest estimate of the transmission or listening start times that that theother device is using. For example, the start of listening ortransmission may be pulled forward by about one-half the amount ofextension applied to the listening or transmission periods,respectively, Timer periods indicative of reception start times (i.e.listening times) may be generated using a clock signal (i.e. RF onesecond clock signal in the present embodiment) that is based on a pulsestolen signal (e.g. 210 Hz signal generated by the system clock ripplecounter in the present embodiment) plus or minus a value stored in anadjustment register (i.e. REG B in the present embodiment which isdiscussed hereafter). The beginning of a reception period is determinedby passing the RF one-second signal through a start counter andcomparing the value of the start counter to a predefined value stored ina start register using a first comparator. The value in the startregister dictates how often reception will automatically be enabledrelative to the clock signal that drives the first counter.

[0138] In the implantable device of the present embodiment aprogrammable but fixed value of 0x1000 is set into REG B which impliesan adjustment of zero to the RF one second clock signal (as will bediscussed hereafter). Also in the implantable device of the presentembodiment, the value set in the start register is a programmable amountthat is set at two for normal operations and as it is driven by a 1 Hzclock signal, reception is started every 2 seconds. In the communicationdevice of the present embodiment, the value used in REG B is varied andthe value set in the start register in combination with the REG B valuesets the interval between listening start times to nominally 60 seconds.

[0139] When the register value and counter value match, a signal may begenerated by the first comparator to initiate reception. The outputsignal may also be used to clear and enable a period counter that isincremented based on a signal of desired frequency (e.g. about a 8,192Hz signal). The value in the period counter is compared to that in aperiod register using a second comparator. When the values are equal,the second comparator outputs a period signal that resets the value inthe first counter and resets the value in the second counter. The periodsignal may be used to end reception. The resetting of the value in thefirst counter prepares it for the use in establishing the start of nextlistening period. This control technique works because the listeningperiod defined the second counter and second comparator is less than theduration between successive counts of the first counter. In the presentembodiment as the duration is set by a single 8 bit register and theclock driving the counter matches the bit rate for data reception andtransmission, the maximum duration is 256 bit times (e.g. {fraction(1/32)} of a second when using an 8 kHz bit rate). In other embodiments,clock signals other than that corresponding to bit times may be used.

[0140] The value placed in the listening period register in combinationwith the frequency of the counting dictates the time period between thestart listening and end listening times. The start signal and periodsignal may be used in controlling the autonomous listening behavior ofreceiver. In an alternative embodiment, the period signal may be not beused to immediately shut down the receiver but instead an additionalperiod of time may be allotted (e.g. 1 mS) before shut down so as toallow the system to once again check to see if an entire frame syncpattern has been received. This enhancement avoids shutting down thereceiver when a message may have been incoming but in an intermediatestate of having attention preamble already ended but frame sync notfully received at the time the period signal was issued.

[0141] In the present embodiment, the time boundaries critical for RFtransmission and reception are the second boundaries and the minuteboundaries. In optimizing the ability of the system to operate at lowpower, the external communication device and the implantable device arecaused to maintain time synchronization. In the present embodiment,dedicated hardware is used to provide enhanced synchronization. In otherembodiments a similar enhancement may be provided in part by softwarethough at a probable increase in power consumption.

[0142] In the present embodiment, timer inaccuracy is observed as adifference between the timing signals generated in the pulse stolen 8192Hz clocks (time of day clocks) in the external communication device andthe implantable device. However, if the pulse stolen clocks are runningat slightly different frequencies the time-of-day values in the twounits will slowly diverge. These difference may result from, forexample, fluctuation in the oscillation frequency of the crystaloscillator due to temperature fluctuation or due to slight inaccuraciesin the pulse stealing values used. As noted above, the purpose of thetime synchronization operations of the present embodiment are to (1)periodically set the time of day timers in the two devices to the samevalue, and (2) compensate for relative drift between the two timersbetween resettings.

[0143] In order to achieve synchronization, the implantable device isconsidered the master and the external communication device synchronizesits time-of-day counter periodically with the time-of-day counter in theimplantable device. In the present embodiment, synchronization isperformed every time a valid message is received from the implantabledevice. As a correction factor, by definition, is not needed in theimplantable device, the RF time synchronization function is disabled bysoftware in the implantable device for both the main and monitorprocessors. In other embodiments, the implantable device instead of thecommunication device may perform the time synchronization function. Instill other embodiments, a modified version of the time synchronizationtechnique may be used to maintain synchronization between the twoprocessor ICs in the implantable device.

[0144] Time Synchronization is used to minimize power consumption on theimplantable device side of the system. the external communication deviceuses the following hardware to keep track of the passage of time and cantransmit telemetry data bound for the implantable device within thelistening periods used by the implantable device.

[0145]FIG. 5 illustrates a block diagram of the various hardwarecomponents and signals used for time synchronization. Register A (REG A)102, Register B (REG B) 104, and the Counter C (CNT C) 106 are loadableby the CPU as illustrated by lines 112, 114, and 116, respectively.Counters A (CNT A) 122 and Counter B (CNT B) 124 both have the same timebase of 8192 Hz as indicated by lines 126 and 128, respectively.

[0146] A valid ID signal (IDVALID) 132 is generated when a message forthe communication is recognized by the hardware. The IDVALID signal 132indicates that the hardware recognized the frame synchronization byteand a 24 bit telemetry ID. As soon as IDVALID is asserted, the value inREG A is loaded into CNT A and CNT A continues to count at the same rateas Counter B but with a predefined starting value, i.e. the valueinserted from REG A.

[0147] The value loaded into REG A by the CPU is known. It representsthe number of bit times that have occurred between the beginning ofmessage transmission and the receipt of the telemetry ID. In the presentembodiment, it takes a transmission of 40 bits for the communicationdevice to recognize a valid telemetry ID: (1) 8 bits for the preamble,(2) 8 bits for the frame synchronization byte, and (3) 24 bits for thetelemetry ID. Altogether it takes 40 bits to have the IDVALID signalasserted. The value loaded into REG A is 40*81 92/(incoming data rate).For example, if the data rate is 8192 bits/sec, then the value 40 isloaded into REG A and then loaded into CNT A after IDVALID is asserted.Since the implantable device always starts transmitting exactly on theone second boundary based on its own concept of time, i.e. its B countervalue is equal to zero, the IDVALID signal is asserted when theimplantable device's B counter is equal to 40. As such the value loadedinto CNT A of the communication device is initially 40 but thencontinues to increase since CNT A continues counting. After the entiremessage is received, if the CPU determines if the message was valid. Ifvalid, then the value in CNT A of the external communication device isloaded into the CNT B of the external communication device and theimplantable device and external communication device are synchronizedwith respect to time.

[0148] In alternative embodiments, the medical device could start itstransmission at other than second boundaries and the communicationdevice could still achieve synchronization if the start time informationwere transmitted with the message so that it could be used by thecommunication device when performing its analysis. In the presentembodiment, the resolution with which synchronization is maintainedcorrelates to the bit rate that is used in data transfer and as suchsynchronization between the two devices is targeted to be maintainedwithin about 1 bit time. In other embodiments, targeted synchronizationresolution may be different from bit time, i.e. it may be greater orsmaller. If smaller, corresponding variations in listening periodsand/or transmission periods may be necessary to accommodate thepotential variance between the timing of the two devices. In still otheralternatives, responsibility for maintaining synchronization could behandled by the medical device or by both devices.

[0149] Whenever a valid ID (IDVALID) is recognized by the externalcommunication device the value in CNT B is loaded into the Register C(REG C) 106. The value in REG C may be sent to the CPU as illustrated byline 108. This, along with other information, can then be used todetermine the relative clock error between the implantable device andthe external communication device. The value loaded into REG C minus thevalue in REG A yields the time difference in bit times between theimplantable device's concept of time and the external communicationdevice's concept of time. If the difference is positive, the externalcommunication device's clock is running ahead of the implantabledevice's clock. If the difference is negative, then the externalcommunication device's clock is running behind the implantable device'sclock. Again, using the example above, if the value loaded into REG C is64, and since we know it should have ideally been 40, we know that theexternal communication device has gained 24 counts. This gain in countshas occurred since the last time the implantable device's B counter andthe external communication device's CNT B were synchronized. Taking intoaccount the time interval since the last synchronization occurred, theerror in terms of a rate can be calculated. If the last synchronizationoccurred 5 minutes ago, the external communication device is running 24counts per 5 minutes, or about 10 parts per million, too fast. In orderto avoid inaccuracies in computing the relative error, each new relativeerror is preferably, but not necessarily, averaged with the previouslycomputed error. Also, if the time since the last synchronization is tooshort (e.g. less than 1 to 5 minutes), the error may not be re-computedas it may lack sufficient accuracy. When the drift rate is calculated,it may be used to compute a modified time to start listening for anoutbound message (i.e. outbound from the implantable device) or to starttransmitting an inbound message (i.e. inbound to the implantable device)based on how much time has lapsed since the last communication.

[0150] When the external communication device must communicate with theimplantable device, REG B can be used to set a time offset (based on anestimate of drift) to more accurately synchronize thetransmission/reception of the message. An estimated drift value may beloaded into register B. This estimated drift value may be derived, atleast in part, based on the difference between the value stored inregister C and the value stored in register A along with a timedifference between the last two synchronizations (e.g. the last twocommunications), and a time difference between the last synchronization(e.g. the last communication) and the present time. For example, theestimated drift (ED) may be derived from,${ED} = {\frac{{{Reg}\quad C} - {{Reg}\quad A}}{{{Time}\quad 1} - {{Time}\quad 2}}*\left( {{{Time}\quad 0} - {{Time}\quad 1}} \right)}$

[0151] Where Reg A and Reg C are the respective values in REG A and REGC, and Time 2, Time 1, and Time 0 are the time of the second to lastcommunication, time of the last communication, and the present time,respectively. A positive value of ED indicates that the externalcommunication device's sense of timing is leading that of theimplantable device while a negative value indicates that the externalcommunication device's sense of time is trailing that of the implantabledevice.

[0152] Other ways of deriving the estimated drift value mayalternatively be used. As mentioned above, the drift may be determinedbased on an average of a presently determined error rate and one or morepreviously determined rates. This type of averaging may be unweighted orweighted, based for example on the relative times between successivemeasurements. In another alternative, the estimate of drift maycompletely ignore one or more of the most recent communications andinstead be based on the present time and the time of an oldercommunication.

[0153] Compare circuit 134 compares a value loaded into REG B with thecurrent value in CNT B. When the values match, the compare circuit sendsan output signal 136 to Register D (REG D) 138 which may be a one-shotflip-flop that produces a single output pulse having a width equal tothat of one cycle (e.g. about {fraction (1/8192)} seconds) of the inputclock signal 142. The output 144 of Register D may be the RF one secondsignal that triggers the onset of various telemetry related activities.

[0154] In the present embodiment, it is desired that an upper limit onacceptable estimated drift be set, after which the drift will beconsidered to be excessive and a more extreme technique may be used toreestablish communication. In the present embodiment, if the valueloaded into REG D is within a preset tolerance, or drift limit, (e.g.+/−0.25 seconds) of a nominal transmission or receive time (e.g. a 1second boundary as indicated by CNT B) an RF one second signal is to begenerated. Confirmation that the value in Register D is within thepreset tolerance may be obtained by comparing selected bit values inRegister D to predetermined values for those bits. For example, a bitvalue of “0001 0000 0000 0000” may represent a one second boundary inRegister D. The first three bits from the left may represent padding sothat the value may be expressed in a 2-byte manner. The 4^(th) bit fromthe left may represent a second value, i.e. a value comparable to the 1Hz clock signal of the system clock ripple counter. The 5th bit mayrepresent a half second value, i.e. a value comparable to the 2 Hzsingle from the ripple counter, and the 6^(th) bit may represent aquarter second value, i.e. a value comparable to the 4 Hz clock signalfrom the ripple counter, and so forth. Based on these definitions avalue of “0001 11XX XXXX XXXX” is within 0.25 seconds before a secondboundary and a value of “0000 00XX XXXX XXXX” is within 0.25 secondsafter the second mark. As such a comparison of the 11th and 12th bitvalues in register D (or even to register B) with 00 or 11 will indicatewhether the value is within the desired range. Of course, othercomparisons and selected bit values may be used for other presettolerance amounts. As such, in this embodiment, prior to an RF onesecond signal being generated the value of selected bits in REG D areanalyzed to determine if they meet the above criteria. This analysis maybe performed in many ways such as by comparing the value of the selectedbits independently to values for upper and lower limits, or in the caseof the above example, by simply confirming that the 11th and 12th bitswere identical.

[0155] In other alternative embodiments excess drift may be determineddirectly by comparing a limiting value directly to a value determinedfor the estimated drift prior to loading any value into REG B. In stillother alternatives, the concept of limiting what drift values may beeliminated. This elimination may come at the expense of transmitting oneor more additional bits of information with messages that indicate oneor more attributes of transmission time (e.g. whether the transmissionstart on an even or odd second boundary or potentially what the secondnumber was. Additional hardware could be added to what was describedabove to handle these alternatives. In other embodiments, portions ofthe synchronization process could be performed by software, such asprocessing of information related to whether the second was even or odd)and then updating registers as appropriate.

[0156] As an example, suppose that 2 minutes after receiving thesynchronization message, the communication device needs to transmit amessage to the implantable device. Since the known error is 24 countsper 5 minutes, the external communication device will be about 10 countsfast compared to the implantable device. If in the implantable device, avalue 0x1000 is loaded into the B register, the implantable device willbegin listening and/or transmitting exactly at the one second mark ofthe implantable device. In the external communication device, by loadingthe value (0x1000-0x000A) into the B register, the externalcommunication device will begin receiving and/or transmitting 10 bittimes earlier than it otherwise would and thus as it is anticipated thatthe external communication device's clock is actually 10 bit times aheadof the implantable device's clock the transmission and reception will bereasonably synchronized under the assumption that drift has not changedsignificantly.

[0157] As CNT B is updated with the value in CNT A every time a validmessage is received, a current drift amount, though not drift rate, willbe reset to zero upon receipt of each message.

[0158] Similarly, if the external communication device is programmed orotherwise configured to potentially receive messages from theimplantable device every minute, the value in the B register may beupdated each minute, so that the receiver will be listening at theappropriate times. In the first minute after synchronization, theregister, for example, may be set to 0x1000 minus 0x0005; in the secondminute, 0x1000 minus 0x000A, and so on.

[0159] In the present protocol, no more than one message can be receivedfor each reception window or listening period. In alternativeembodiments, a “multiple message op-code” and a “number of messagesparameter”, or the like, may be used such that the receiver knows thatit must remain on until an indicated number of messages have beenreceived.

[0160] As noted above, in a preferred implementation of the presentembodiment, telemetry hardware is used to identify the bit sync, framesync, and telemetry ID portions of an incoming message as opposed tousing software to interrupt the initial bytes of a potential incomingmessage. After the hardware confirms that the incoming message is forthe particular receiver, the hardware activates the CPU of the processorIC so that software can aid in receiving, interpreting, and validatingthe message. This allows the power consumption of the receiver to remainat a minimum level while waiting for incoming messages to be initiallyscreened. Also as noted above, in a preferred implementation thereceiver only listens for incoming messages at discreet intervals forlimited periods so as to further minimize power consumption associatedwith maintaining communication. As it is preferred that the limitedlistening periods are relatively small compared to the listeningintervals, it is preferred that a reasonable level of timesynchronization be maintained between the transmitter and receiver so asto minimize excess power consumption and user inconvenience associatedwith using extended attention preambles, multiple communicationattempts, or the like, to ensure appropriate information transfer isachieved.

[0161] In alternative embodiments, particularly where power consumptionis less critical, the power of the microprocessor might be utilized tocontrol the telemetry hardware during the reception of any or all of thepreamble, frame sync, or telemetry ID portions of the message or mayeven be used to activate the reception hardware at the listening starttime and to deactivate the hardware at the end of the listening periodif it is determined that no message was incoming.

[0162] In a preferred time synchronization implementation, the conceptof time at the second and subsecond level is dictated by the implantabledevice, whereas the concept of time at the minute and hour level isdictated by the external communication device. Of course, othersynchronization schemes may be alternatively defined.

[0163] In the present embodiment, transmissions are allowed to beginonly at the boundaries of seconds as measured by the transmitter'stelemetry timer (taking into account any offsets associated with timesynchronization). Selected boundaries of seconds within each minute areassigned either as a potential outbound transmission start time from theimplantable device to the external communication device or as apotential inbound transmission start time from the externalcommunication device to the implantable device. For example, eachboundary at the beginning of an even second may represent a potentialstart time for inbound transmissions, while one or more odd secondboundaries during each minute may represent potential start times forunsolicited outbound transmissions. A predefined inbound transmissionstart time may be replaced by transmission start time for a solicitedoutbound message as the external communication device is awaiting aresponse to the communication that solicited the response from theimplantable device. In other embodiments, potential transmission timesmay be set to start on something other than boundaries of seconds. Instill other embodiments, the communication device may continue totransmit messages based on inbound transmission start times as theimplantable device may be listening only during predefined inboundlistening periods, while the implantable device may be able to transmitat any time, outside of its normal predefined listening time slots, asthe external communication device may be continuously listening foroutbound communications any time it is not transmitting.

[0164] In the present embodiment, depending on the type of message, a1-byte or 2-byte cyclical redundancy code (CRC) follows the data bytes.It is preferred that the CRC be generally computed using the telemetryID of the message originator (i.e. the telemetry ID of the transmitter).This serves as a form of security. If a message with this type of CRC isreceived by an implantable device, the implantable device must haveadvanced knowledge of the telemetry ID of the transmitting externalcommunication device or the implantable device will reject the messagebecause of a CRC error. Similarly the communication device may simplyreject messages that do not originate from its partnered medical device.

[0165] A CRC to be included with a message, in the present embodiment,is calculated based on the successive bytes forming the message andpossibly upon the identity of the transmitter as well. When the CRC iscomputed using the telemetry ID of the message originator, the firstthree bytes used in the calculation are the telemetry ID of theoriginator. The CRC calculation then uses the three bytes of thetelemetry ID of the intended receiver, the 1-byte of op-code, and thenthe remaining bytes of data in the message (with the exception of theCRC itself that is being calculated). When the CRC is not computed withthe message originator's telemetry ID, the CRC is computed based on thebytes of the message starting with the message op-code, and continuingwith the rest of the bytes in the data (with the exception of the CRCitself that is being calculated). Of course, in other embodiments, theCRC calculations may use the telemetry ID of the originator other thanat the beginning of the calculation. In still other embodiments, theop-code may be left out of the CRC calculation. In still otherembodiments, the order in which the components of the messages arecalculated may be changed, though if different from the order presentedin the message itself, recalculation of the CRC by the receiver may notbe able to be performed on the fly as the message is being received asis done in the current embodiment.

[0166] In the present embodiment, it is preferred that a precalculatedCRC transmission key and a precalculated CRC reception key are derivedand stored so that they do not have to be calculated each time they areneeded. The transmission key is a CRC derived from the byte-by-byteprocessing of the transmitter's three byte telemetry ID followed by thereceiver's three byte telemetry ID. The reception transmission key is aCRC derived from the byte-by-byte processing of the transmitter's threebyte telemetry ID followed by the receiver's three byte telemetry ID.Though these key definitions sound the same it must be remembered thatthe transmitting and receiving roles and devices are reversed. Thesekeys are used as the starting points for deriving the CRC that is to betransmitted with the message and the CRC that is derived upon receipt ofa message, respectively. In other embodiments other keys may be defined.

[0167] Further details about CRC generation may be found in (1) theabove referenced concurrently filed US Patent Application correspondingto Medical Research Docket No. USP-1079-A, (2) the “CCITT Red Book”,Volume VII, published by International Telecommunications Union, Geneva,1986, Recommendation V.41, “Code-Independent Error Control System”, and(3) “C Programmer's Guide to Serial Communications”, 2nd Edition, by JoeCampbell, published by SAMS Publishing, Indianapolis, Ind., ISBN0-672-30286-1. In particular chapter 3 of this latter book deals witherrors and error detection including CRCs, while chapter 23 deals withcalculation of CRCs. These books are hereby incorporated by referenceherein as if set forth in full.

[0168] In a preferred implementation, the clock in the implantabledevice is the master clock in terms of tracking seconds within a minuteand subseconds within a second. The implantable device obtains itsconcept of the minute number within an hour and hour within a day fromthe values set in the external communication device which typicallycorrespond to the time of day at the patient's location. The values forsubseconds within a second are preferably transmitted implicitly by theimplantable device to the external communication device based on theimplicit understanding that implantable device transmissions alwaysstart at second boundaries.

[0169] More specifically, each time the external communication devicereceives a transmission from the implantable device, it uses acombination of elements to calculate a difference between the externalcommunication device clock and the implantable device clock. Theseelements include (1) the exact time that a certain portion of thetransmission is received according to the external communication deviceclock, (2) knowledge that implantable device message transmission beginsa known time according to the implantable device's clock, and (3) aknown time difference between that portion of the transmission and thebeginning of the transmission. These three elements may be used todetermine any difference in time between the clocks and ultimately toresynchronize the clocks. Of course, in alternative embodimentssynchronization may be implemented in other various ways.

[0170] In a preferred implementation, telemetry transmission andreception time slots begin exactly at one-second boundaries. Some timeslots are unassigned while others are assigned as slots forcommunications that are inbound to the implantable device. During normaloperation each even second, relative to the minute mark, is slotted forinbound transmissions. In a storage mode, the 0, 15, 30, and 45 secondmarks are slotted for inbound communications. Storage mode is a state ofthe implantable device where power consumption is reduced to a minimumlevel during periods of non-use thereby conserving battery power andthus extending the life of the implantable device. The one second markafter the roll over of each minute is assigned as a slot for unsolicitedoutbound messages (i.e. messages that are sent without a triggeringmessage from the external communication device). Messages sent from theimplantable device in response to external communication devicecommunications (i.e. solicited messages) are sent out on the nextavailable second mark. In alternative embodiments, it is apparent thatother inbound and outbound slots may be defined.

[0171] Since most system communications of the present embodimentoriginate with the external communication device, and as a rapidresponse to programming commands is desired for user convenience, it ispreferred that inbound slots be placed relatively close together (e.g.no more than 15 seconds apart, more preferably no more than 10 secondsapart, and even more preferably no more than 5 seconds apart, and mostpreferably no more than about 2 seconds apart. In order to save batterypower on the external communication device, it is generally preferredthat the system have relative few outbound slots so that the externalcommunication device doesn't consume excessive power when unsolicitedmessages from the implantable device are not often used. In general, itis preferred that there be more predefined inbound time slots per timeperiod than outbound time slots. Of course in alternative embodimentsoutbound time slots may exceed or equal the number of inbound timeslots.

[0172] When the external communication device sends an inbound messagethat requires a response, the external communication device listens forthe anticipated response from the implantable device that will be sentout on the next one second boundary. If a response is not received in apredefined period of time, the external communication device mayautomatically retransmit the message one or more times prior to alertingthe patient of a failure to communicate.

[0173] In the present embodiment, all transmissions both inbound andoutbound, and both solicited and unsolicited are sent using the samedata transmission rates and the same carrier frequency. In alternativeembodiments, however, data transmission rates may be varied, and carrierfrequency may be varied. Such variations may be based on predefined timeslot definitions so that both the implantable device and externalcommunication device may properly vary their reception parameters inanticipation of how the other device may attempt to communicate. Forexample, solicited transmissions may occur at a different carrier thanunsolicited transmissions or may occur using a different datatransmission rate. The external communication device may transmit oninbound time slots with a first carrier frequency and first data rate,and the implantable device may transmit on outbound time slots with asecond frequency or second data rate that may be different from thefirst frequency or first data rate. In still further embodiments,transmission reception & frequency may be user selectable ifcommunication problems are excessive in the hope of finding a frequencywith less interference.

[0174] To reduce power consumption, it is desirable to have telemetryhardware operate only during actual transmission times and duringpossible reception times. As such, the hardware, as discussed above, isconfigured and controlled so that this result is achieved. As powerconservation in the implantable device is more critical than powerconservation in the external communication device, this first embodimentplaces the burden associated with synchronization activities andactivities associated with reestablishing synchronization, once it islost, onto the external communication device. This desire to minimizepower drain in the implantable device is balanced with a desire to havethe implantable device respond quickly to commands transmitted by theexternal communication device. Once a command is issued by the externalcommunication device, it is preferred, for user/patient convenience,that the implantable device receive and acknowledge the command asquickly as possible. To this end, the implantable device is providedwith closely spaced reception slots (i.e. inbound listening intervals,e.g. every 2 seconds) so that communication can occur with asufficiently fast response. Each inbound listening period, however, isof very short duration so that power consumption in the implantabledevice is minimized.

[0175] The duration of each inbound listening period is preferably notso small that slight variations in synchronization cause lost ofreception, which would cause a delay in communication, as well aspotentially causing extra power consumption in order to reestablishcommunication as the reception hardware may be forced to remain on forextended periods of time due to the reception of lengthy attentionpreambles. As such, in the present embodiment the reception time slotsare turned on for an initial period of about 2-8 milliseconds (e.g. 4milliseconds) while using an 8 kHz data transmission rate with a minimumnumber of 8-bit transitions necessary for establishing bitsynchronization.

[0176] In alternative embodiments longer or shorter windows may be used.Relative to the incoming bit rate, it is preferred that the windowremain open in the range of about one and one-half to four times theperiod necessary to establish bit sync and receive a complete frame syncsignal.

[0177] In other alternative embodiments, if attention preamble is sent,the window may be opened only for a period necessary to establishreceipt of the attention preamble and thereafter, frame sync and a validtelemetry ID may be looked for. In this alternative, to enhancelikelihood of reception, the transmitter preferably does not begintransmission at what it believes is the most likely time that thereceiver begins listening, but instead begins transmission at a somewhatearlier time with an attention preamble of sufficient length to cover orat least sufficiently overlap the anticipated listening period.

[0178] In the present embodiment, the implantable device always starts atransmission exactly at (an outbound transmission start time whichcorresponds to a second boundary) according to its own clock. Theexternal communication device may activate its receiver at what itbelieves is the implantable device's outbound transmission start timebased on use of any synchronization parameters established inconjunction with the previous communication(s). The externalcommunication device may leave its reception window open for apredefined minimum period of time or alternatively it may adjust thelistening period based on one or more parameters. The receiver may useone or more additional parameters to adjust the opening of the receptionwindow to somewhat earlier than what it believes the actual start of thepotential transmission is to be. This early opening of the receptionwindow may be based on an anticipation that a certain amount ofincreasing uncertainty exists in the validity of the previouslyestablished synchronization and associated previously established driftparameters. In other words, this may be done in recognition that thereis a tolerance around which synchronization may be drifting. Suchadditional parameters may also be used to lengthen the reception windowbeyond a predefined initial listening period.

[0179] In this embodiment, the implantable device always turns on itsreceiver exactly at the beginning of an inbound reception time slot. Assuch, if the external communication device has a message to transmit tothe implantable device during that reception time slot, the externalcommunication device may start transmitting at what it believes is thebeginning of the time slot based on an estimated amount of drift thatmay have occurred. Alternatively, it may begin transmitting somewhatahead of its best estimate as to when the time slot will open, inanticipation that there is some degree of uncertainty in the actualamount of drift that has occurred between its measure of time and thatof the Implantable Device. In this regard, the external communicationdevice may use an extended preamble, possibly of the standard pattern ifnot extended too long, but more preferably of the attention pattern sothe chance of establishing communication is increased due to thereceiver's attribute of having its attention held (i.e. receptionhardware retained in an active state) by a communication that consistsof the attention preamble pattern. The parameter used in causing thewindow to open early may be a fixed parameter, or a parameter that isbased, at least in part, on the time difference between the present timeand the time of last establishing synchronization and possibly based onan estimate of maximum likely drift rate or based on an actual amount ofdrift experienced between the last two communications or between severalcommunication or associated with an amount or amounts of driftexperienced during approximately the same time periods during one ormore previous days. Similarly, the parameter used to extend the lengthof the standard preamble or attention preamble, or even to selectbetween them, may be a fixed parameter, a parameter that is based, atleast in part, on the time difference between the present time and thetime of last establishing synchronization or a parameter with adifferent basis.

[0180] If it is determined that resynchronization is needed, theexternal communication device may establish re-synchronization in one ofseveral ways. The external communication device may transmit a messagewith an extended preamble consisting of the attention preamble. Thisprocess may be done as a single step or it may be done in multiplesteps. In the single step process, the attention preamble is set to alength of time equal to or somewhat greater than the length of timebetween inbound listening intervals. This message is preferably a syncmessage as will be discussed hereafter though it may be also be adifferent message. After transmission of the message, the externalcommunication device leaves its receiver open for at least about 1-2seconds in anticipation of the implantable device sending an outboundresponse. The timing of the sync response message, as well as itscontent, will provide the information necessary to reestablishsynchronization

[0181] The sync message is preferred over other messages because othermessages may not carry as much information about timing between theimplantable device and the external communication device as is carriedby the sync message. For example, all response messages may be used toreestablish synchronization of the second boundaries, but not allmessages necessarily carry sufficient information to reestablish evenversus odd second boundaries or information necessary to reestablishone-minute boundaries.

[0182] In one variation of this one step process, the externalcommunication device begins transmission of the message somewhat afterits best estimate (if it has one) as to when the reception window on theimplantable device will be closing. In this variation, it is hoped thatthe implantable device's receiver will open its reception window towardsthe end of transmission of the attention preamble, as opposed to towardthe beginning of transmission, so that power consumption by theimplantable device is minimized.

[0183] One potential multi-step process is similar to the one stepprocess discussed above, but the first one or more attempts to establishsynchronization use an attention preamble that is shorter than theinbound listening interval. In this regard, if the transmission catchesthe window, the receiver of the implantable device may be held open fora shorter period of time than that resulting from the one step processand thus a power savings in the implantable device may be achieved.However, if the transmission is not received, one or more subsequentmessages will need to be sent, with the associated inconvenience of anextra time delay. In this process, the first message is preferablycentered around the external communication device's best estimate as toinbound listening period. If communication and synchronization are notreestablished in response to the first message, one or more subsequentmessages may be transmitted with longer attention preambles that stillmay be shorter than the interval between inbound time slots, equal toit, or even greater than it. In any event, if communication andsynchronization are not reestablished using the previous attempts, afinal message will be sent with an attention preamble of length equal toor greater than the inbound listening interval. If communication hasn'tbeen reestablished based on transmitting attention preamble for a periodof time equal to or somewhat greater than the normal operation inboundlistening interval, it may be appropriate to send an attention preamblefor a time period equal to or somewhat greater than the storage modeinbound listening interval as the system may have inadvertently beenshifted to that mode. If communication is still not established, thepatient may be alerted to the problem so that he/she may reposition theexternal communication device relative to the implantable device, go toa different location where electromagnetic interference may be reduced,or otherwise seek assistance in addressing the problem.

[0184] As a second example of a potential multistep synchronizationprocess the length of the attention preamble may not be increased beyondthat selected for the first attempt, instead if multiple attempts areneeded, the start time of transmission may be shifted such that theentire set of messages, if required to be sent, will cover all possibleportions of the inbound listening interval by covering a differentportion of each interval in a series of intervals.

[0185] As a further alternative, if unsolicited communications areoutbound from the implantable device on a periodic basis, the externalcommunication device may simply open its reception window for the entireinterval between at least two of the successive periodic outboundcommunications so the message known to be transmitted sometime duringthe interval will be received assuming that the devices are withintelemetry range and other problems are not present such thatsynchronization may be reestablished.

[0186] Some messages may be transmitted without expecting a response, inwhich case the sender will not know whether they were correctly received(non-response transactions). Other messages may require a response. If aresponse to these messages is not received, the transmitter will respondto the failure by repeating transmission of the message. After apredefined number of transmission attempts without a response, themessage may be declared undeliverable, and the patient may be alerted tothe problem. In the present embodiment, status messages do not require aresponse.

[0187] All messages (with the exception of the link message and theinterrogate message) that require a response and trigger an action inthe receiver, and all responses to such messages, are transmitted with asequence number. In the present embodiment, that sequence number is asingle bit that identifies the sequence of messages. As such, thissequence number is toggled between its two possible states “1” and “0”,by the transmitter each time a message is sent and the appropriateresponse (including the sequence number) is received. The receivertoggles its concept of what the sequence number should be when itreceives a valid message with the sequence number that it is nextexpecting. If it receives a message with a sequence number it is notexpecting, it sends a response indicating that the message was receivedbut does not act upon the content in the message. In alternativeembodiments, the sequence numbering may be removed or enhanced toinclude more than one bit. The sequence number is used to ensure that agiven message is only acted upon once, though the message may bereceived multiple times and multiple responses sent out. This situationmay occur when the sender does not receive the response and thenautomatically resends the message one or more times. If a response isnot received after one or more attempted retransmissions, thesynchronization process is attempted. If that fails, the patient isalerted to the condition so that subsequent steps may be taken. In anyevent, once communication is reestablished, the message is resent and anappropriate response looked for. If the original message was notreceived in the original transmission attempts, and was only received inthe last transmission attempt, and it dealt with an insulin deliveryissue that was not longer applicable, the delivery could be canceled bygoing into a suspend mode or by taking other steps in a timely manner.Suspend mode is an operational state of the implantable device whereinsulin delivery is reduced to a medically insignificant level.

[0188] If a received message requires a response, the recipient respondsduring the next available transmission period. If a received message hasan incorrect CRC, it is ignored. In the present embodiment, the senderof a messages waits a predetermined period of time for the anticipatedresponse message and if it does not receive the response as expected, ittakes the appropriate course of action as noted above.

[0189] The user may need to change the time defined in the externalcommunication device. This may result from changes when travelingbetween time zones, due to annual shifts in time, as well as due toslight errors in tracking time. In the present embodiment, the externalcommunication device keeps track of minutes, hours, and days based onthe operation of its clock and any updates from a user. The externalcommunication device receives it concept of seconds within a minute fromthat found in the implantable device and as such does not allow userinput to update a second value. The external communication device doesnot track seconds within minutes. When the user changes the time on theexternal communication device, an appropriate message is transmitted tothe implantable device so that it may adapt to the new time of day. Thisis done because certain automatic delivery regimes (e.g. basal rateprofiles) are based on the time of day. In the present embodiment,delivery is not automatically changed between various days of the weekor month and as such the implantable device has no need of tracking thisinformation. However, if in alternative embodiments day sensitivedelivery routines are implemented in an automated manner then theexternal communication device could be programmed to pass thisinformation to the implantable device which may be programmed to acceptand use it. If it is found desirable for the communication device totrack seconds, in an alternative embodiment, the medical device couldobtain its concept of seconds from the communication device.

[0190] In some embodiments, software may be downloaded from the externalcommunication device to the implantable device. The downloading ofsoftware may include the downloading of executable software as well asthe downloading of data structures that may be used by the executablesoftware.

[0191] In the present embodiment, a specific external communicationdevice is configured/programmed to communicate substantively with onlyone specific implantable device, that is in turn configured/programmedto communicate substantively with only the same specific externalcommunication device. An external communication device is capable ofretaining the telemetry ID of exactly one implantable device at a timeand an implantable device is capable of retaining the telemetry ID ofexactly one external communication device at a time. A small amount ofnon-substantive communication (i.e. communication that does not impactinsulin delivery) can occur between external communication devices andimplantable devices that are not linked (i.e. partnered or married) toone another (i.e. provided with each others telemetry IDs). Onlycommunications between linked devices are used in the timesynchronization process.

[0192] In the present embodiment, many different types of messages andresponses thereto can be written into the programs that control theimplantable device and the external communication device according tothe protocol features set forth above. These messages may be used for anumber of different purposes. For example, (1) they may be system levelmessages that are used for testing devices, for resetting devices, orfor establishing relationships between implantable devices and externalcommunication devices, (2) they may be alarm messages that are used toconvey alarm conditions or to clear alarm conditions, (3) they may bemiscellaneous messages that set various parameters or perform variousread operations, (4) they may be delivery messages that set deliveryamounts, read delivery status, or set parameters such as concentrationand pump stroke volume that may be required to appropriately controldelivery of the drug, (5) they may be data log messages that set datalog boundaries, read boundaries, or clear data logs, boundaries or readinformation from various data logs or supply information to those datalogs, (5) they may be refill messages that are related to amounts ofmaterial that are added to the reservoir periodically, (7) they may becompound messages that perform more than one function, or (8) they maybe error messages that request error condition status or supply errorcondition status. In other embodiments, messages may be classified indifferent ways.

[0193] Various the features of the above embodiment and its alternativesprovide enhanced accuracy of timers, ability to transmit and receivemessages in target time periods, ability to accurately synchronize thetime periods so that communication can occur with little inconvenienceto the user and with little waste of power, ability to recover from aloss of synchronization in an power and/or time efficient manner, and/orability to reduce power consumption. These improvement provide morerobust, effective, reliable, and safe operation of an implantablemedical device and more generically for an ambulatory medical device.

[0194] While the above embodiment has primarily been concerned with animplantable infusion pump that dispenses insulin using a piston typepump mechanism, the telemetry and timing features disclosed herein maybe used in other ambulatory devices such as implantable pacemakers,defibrillators, other implantable tissue stimulators, implantablephysiologic sensors such as electrochemical oxygen sensors, peroxidesensors, or enzymatic sensors such as glucose sensors, externallycarried infusion pumps, implantable infusion pumps that use otherpumping mechanisms or simply used excess pressure and controlled flowelements to infuse various medications and drugs such as analgesics,drugs for treating AIDS, drugs for treating psychological disorders andthe like. For example, the telemetry features presented above may beused with an external infusion pump that may or may not have a built indisplay and keypad but is equipped with a telemetry system that cancommunicate with a physically separated communication device so that thepump need not be accessed in order to provide commands to it and receivedata from it.

[0195] In these various alternatives, the physical, electronic, andprogrammed features of the communication device and implantable devicemay have different components and features than presented above for theimplantable pump system so that their desired medical functionality andsafety requirements are achieved and such that appropriate control andfeedback is provided between the medical device and its communicationdevice.

[0196] In other alternative embodiments the medical device may includetwo medical devices such as an implantable pump and an implantablesensor. The pump may dispense a drug whose physiological impact on thebody (e.g. analgesic impact) is ascertained by the sensor oralternatively the sensor may supply a physiological reading thatindicates a need for infusion of the drug. The pump may operate in aclosed loop manner with the sensor or it may operate in an open loopmanner where the patient is required to interpret sensor outputinformation and is required to issue appropriate infusion commands tothe pump. For example, in the case of a diabetic patient, the drug maybe insulin and the sensor may detect glucose level.

[0197] In other alternative embodiments two medical devices may beimplanted adjacent one another or at an extended distance from oneanother. If not placed in physical contact with one another, a lead maybe used to provide power conduction from one device to the other andalso be used to conduct communication signals between the devices.Alternatively, each device may include at least one telemetry systemthat allows direct communication between each or allows indirectcommunication to occur via the external communication device or otherexternal device. Each device may be supplied with its own power supply.Depending on the communication requirements each device may use two waycommunication (i.e. both outbound and inbound communication) or allowonly one way communication (i.e. outbound communication or possiblyinbound communication).

[0198] In other alternatives, both the medical device and thecommunication device may be external devices (e.g. an external pump andan external RF telemetry based communication device). In still furtheralternatives, a first type of medical device may be implanted (e.g. aninfusion pump or a sensor) while a second medical device may be external(e.g. the opposite of a sensor or an infusion pump). Where at least oneof the medical devices is external, it may also function as thecommunication device for the other medical device in which case it maypossess a display for providing information to the patient and a keypadfor allowing entry of commands for issuance to the implantable device aswell as for direct use by itself. Even if at least one of the medicaldevices is external, it may be inconvenient to access that device wheninformation is needed or commands must be given, as such an external,non-medical communication device may be supplied that has informationoutput (e.g. display) capabilities and input (e.g. keypad) capabilities.If a separate communication device is provided, the external medicaldevice may or may not have display and input capabilities.

[0199] The telemetry features presented above may be used with variousforms of distant communication (e.g. between the implantable device andother external devices or between the external communication device andother external devices). For example communication may occur via variouselectromagnetic links like IR, optical links, longer or shorterwavelength RF, audio links, ultrasonic links, acoustic links, inductivelinks, and the like. Various telemetry systems may be used. Telemetrysystems may be of the analog type, digital type, or mixed.

[0200] The various telemetry and timing features presented above may beused in various combinations be used separately to enhancecommunications between ambulatory medical devices and communicationdevices and/or controllers associated therewith.

[0201] In other embodiments two independent processors may be used thatoperate from a single timing chain. In these alternatives, it ispreferable that at least one of the timing signals (e.g. one of thelower frequency timers) be monitored by an independently timed watchdogcircuit to reduce the risk of timing problems going undetected.

[0202] In still additional embodiments, an implantable glucose sensormay be used in conjunction with an implantable insulin pump to providefeedback to the patient or physician on the effectiveness of the insulindelivery system. The patient could use the feedback to assist in makinginsulin delivery decisions in an open loop manner. Alternatively, theoperation of the pump could be tied to the sensor output in a more orless closed loop manner to give a more automated character to systemoperation. Insulin may be infused without any user intervention, withoutpre-delivery information, and even without direct post deliveryfeedback. In a less automated closed loop system, drug infusionrecommendations could be derived by the system and presented to the userbefore delivery or the system could require user acknowledgment prior toproceeding with delivery for amounts or rates exceed a predefined limit.The implantable sensor may have its own power supply or may receivepower from the control circuitry provided within the pump housingthrough a physical lead that connects them. Power may be suppliedthrough one or more independent leads or alternatively may betransferred over one or more data lines through the communicationsignals themselves. Communication may be exchanged in various waysincluding, for example, via galvanic leads, RF telemetry, fiber optics,and the like, and may be of digital, analog, or combined form. Thesensor system may include a plurality of sensor elements which mightallow continued glucose data to be supplied even though some portion ofthe sensors stop operating, lose calibration or produce questionablereadings. The most preferred sensors would include electronic processingcapability in the form of an integrated circuit mounted in or forming apart of a housing for the sensor. This configuration has the advantageof allowing digital communications between the physical sensor and anyseparated electronic control module.

[0203] Further teachings concerning implantable sensors and implantablesensor systems are found in a number of patents issued to D. A. Gough,including (1) U.S. Pat. No. 4,484,987, entitled “Method And MembraneApplicable To Implantable Sensor”, (2) U.S. Pat. No. 4,627,906, entitled“Electrochemical Sensor Having Improved Stability”; (3) U.S. Pat. No.4,671,288, entitled “Electrochemical Cell Sensor For ContinuousShort-Term Use In Tissues And Blood”; (4) U.S. Pat. No. 4,703,756,entitled “Complete Glucose Monitoring System With An ImplantableTelemetered Sensor Module”; and (5) U.S. Pat. No. 4,781,798, entitled“Transparent Multi-Oxygen Sensor Array And Method Of Using Same”. Eachof these patents is incorporated herein by reference as if set forth infull.

[0204] Still further teachings concerning implantable sensors and sensorsystems are found in a number of patents issued to J. H. Schulman, etal., including (1) U.S. Pat. No. 5,497,772, entitled “Glucose MonitoringSystem”; (2) U.S. Pat. No. 5,651,767, entitled “Replaceable CatheterSystem for Physiological Sensors, Stimulating Electrodes and/orImplantable Fluid Delivery Systems”; (3) U.S. Pat. No. 5,750,926,entitled “Hermetically Sealed Electrical Feedthrough For Use WithImplantable Electronic Devices”; (4) U.S. Pat. No. 6,043,437, entitled“Alumina Insulation for Coating Implantable Components and OtherMicrominiature Devices”; (5) U.S. Pat. No. 6,088,608, entitled“Implantable Sensor and Integrity Test Therefor”; and (6) U.S. Pat. No.6,119,028, entitled “Implantable Enzyme-Based Monitoring Systems HavingImproved Longevity Due to Improved Exterior Surfaces”. Each of thesepatents is incorporated herein by reference as if set forth in full.

[0205] Additional further teachings concerning implantable sensors andsensor systems are found in (1) U.S. Pat. No. 5,917,346, issued to J. C.Gord, et al., and entitled “Low power current-to-frequency converter”;(2) U.S. Pat. No. 5,999,848, issued to J. C. Gord, and entitled “DaisyChainable Sensors for Implantation in Living Tissue”; (3) U.S. Pat. No.5,999,849, issued to L. D. Canfield, et al., and entitled “Low PowerRectifier Circuit for Implantable Medical Devices”; and (4) U.S. Pat.No. 6,081,736, issued to M. S. Colvin, et al., and entitled “ImplantableEnzyme-Based Monitoring Systems Adapted for Long Term Use”. Each ofthese patents is incorporated herein by reference as if set forth infull.

[0206] Further teachings concerning implantable infusion pumps are foundin a number of patents by R. E. Fischell, including (1) U.S. Pat. No.4,373,527, entitled “Implantable, Programmable Medication InfusionSystem”; (2) U.S. Pat. No. 4,494,950, entitled “Infusion Device Intendedfor Implantation in a Living Body”; (3) U.S. Pat. No. 4,525,165,entitled “Fluid Handling System for Medication Infusion System”; (4)U.S. Pat. No. 4,573,994, entitled “Refillable Medication InfusionApparatus”; (5) U.S. Pat. No. 4,594,058, entitled “Single ValveDiaphragm Pump with Decreased Sensitivity to Ambient Conditions”; (6)U.S. Pat. No. 4,619,653, entitled “Apparatus For Detecting At Least OnePredetermined Condition And Providing An Informational Signal InResponse Thereto In A Medication Infusion System”; (7) U.S. Pat. No.4,661,097, entitled “Method for Clearing a Gas Bubble From a PositiveDisplacement Pump Contained Within a Fluid Dispensing System”; (8) U.S.Pat. No. 4,731,051, entitled “Programmable Control Means for ProvidingSafe and Controlled Medication Infusion”; and (9) U.S. Pat. No.4,784,645, entitled, “Apparatus For Detecting A Condition Of AMedication Infusion System And Providing An Informational Signal InResponse Thereto”. Each of these patents is incorporated herein byreference as if set forth in full.

[0207] Still further teachings concerning infusion pumps are found in anumber of patents by Franetzki, including (1) U.S. Pat. No. 4,191,181,entitled “Apparatus For Infusion of Liquids”, (2) U.S. Pat. No.4,217,894, entitled “Apparatus for Supplying Medication to the Human orAnimal Body”; (3) U.S. Pat. No. 4,270,532, entitled “Device for thePre-programmable Infusion of Liquids”; (4) U.S. Pat. No. 4,282,872,entitled “Device for the Pre-programmable Infusion of Liquids”, U.S.Pat. No. 4,373,527, entitled “Implantable, Programmable MedicationInfusion System”; (5) U.S. Pat. No. 4,511,355, entitled “Plural ModuleMedication Delivery System”, (6) U.S. Pat. No. 4,559,037, entitled“Device for the Pre-programmable Infusion of Liquids”; (7) U.S. Pat. No.4,776,842, entitled “Device for the Administration of Medications”. Eachof these patents is incorporated herein by reference as if set forth infull.

[0208] Teachings concerning tissue stimulators are found in a number ofpatents by J. H. Schulman, including (1) U.S. Pat. No. 5,193,539,entitled “Implantable microstimulator”; (2) U.S. Pat. No. 5,193,540;entitled “Structure and Method of Manufacture of an ImplantableMicrostimulator”; and (3) U.S. Pat. No. 5,358,514, entitled “ImplantableMicrodevices with Self Attaching Electrodes”. Further teachings are alsofound in (1) U.S. Pat. No. 5,957,958, by Loeb et al., entitled“Implantable nerve or muscle stimulator e.g. a cochlear prosthesis”, in(2) U.S. Pat. No. 5,571,148, by G. E. Loeb, et al., entitled“Implantable Multichannel Stimulator”; and in (3) PCT Publication No. WO00/74751, by A. E. Mann, and entitled “Method and Apparatus for InfusingLiquids Using a Chemical Reaction in an Implanted Infusion Device”. Eachof these publications is incorporated herein by reference as if setforth in full.

[0209] The control of an implantable sensor could be provided throughthe functionality of one or both Processor ICs. One Processor IC couldsupply power and/or control signals to the sensor(s) and receive databack from the sensor, while the other processor could monitor theactivity to ensure that sensor activity meets certain predefinedguidelines.

[0210] In other embodiments, the External Communication Device of thefirst embodiment could be functionally linked to an external glucosesensor system such as the continuous glucose monitoring system (CGMS)offered by Minimed Inc. of Northridge, Calif. The link may beestablished, for example, through a physical lead or by RF telemetry.

[0211] In other embodiments other implantable, or external, sensorsystems that measure something other than glucose could also befunctionally coupled to the implantable device either to receive powerand/or to provide data. Other such sensors might include oxygen sensors,peroxide sensors, pulse rate sensors, temperature sensors,accelerometers, and the like.

[0212] In still other alternative embodiments, the electronic controlsystem of the first embodiment could be configured to control one ormore implantable sensors or electrical stimulators with or withoutinfusion functionality incorporated into the implantable device.

[0213] Further embodiments will be apparent to those of skill in the artupon review of the disclosure provided herein. Still further embodimentsmay be derived from the teachings set forth explicitly herein incombination with the teachings found in the various patent applications.

[0214] While the description herein sets forth particular embodiments,it is believed that those of skill in the art will recognize manyvariations to the presented embodiments based on the teachings herein,as such it is believed that many additional modifications may be madewithout departing from the spirit of the teachings herein. Theaccompanying claims are intended to cover such modifications as wouldfall within the true scope and spirit of the present invention.

[0215] The disclosed embodiments are therefore to be considered asillustrative and not necessarily restrictive, the scope of the inventionbeing indicated by the appended claims, rather than the foregoingdescription, and all changes which come within the meaning and range ofequivalency of the claims are therefore intended to be embraced therein.

We claim:
 1. A medical system, comprising: a) an ambulatory medicaldevice (MD) comprising MD electronic control circuitry that furthercomprises at least one MD telemetry system and at least one MD processorthat controls, at least in part, operation of the MD telemetry systemand operation of the medical device, wherein the medical device isconfigured to provide a treatment to a body of a patient or to monitor aselected state of the body; and b) a communication device (CD)comprising CD electronic control circuitry that further comprises atleast one CD telemetry system and at least one CD processor thatcontrols, at least in part, operation of the CD telemetry system andoperation of the communication device, wherein the CD telemetry systemsends messages to or receives messages from the MD telemetry system,wherein the CD telemetry system listens during preselected outboundlistening periods windows of time for at least a selected type ofmessage from the MD telemetry system.
 2. The system of claim 1 wherein afirst portion of the MD telemetry system is incorporated into the MDprocessor and a second portion of the MD telemetry system is external tothe MD processor, or wherein a first portion of the CD telemetry systemis incorporated into the CD processor and a second portion of the CDtelemetry system is external to the CD processor.
 3. The system of claim2 wherein (1) the MD electronic control circuitry comprises at least oneexternal MD functional module, other than the second portion of the MDtelemetry system, that is external to the MD processor, (2) the CDelectronic control circuitry comprises at least one external CDfunctional module, other than the second portion of the CD telemetrysystem, that is external to the CD processor, (3) the MD processorcomprises an internal MD CPU and at least one other internal MDfunctional module, or (4) the CD processor comprises an internal CD CPUand at least one other internal CD functional module.
 4. The system ofclaim 1 wherein the selected type comprises unsolicited messages.
 5. Thesystem of claim 1 wherein the selected type comprises solicitedmessages.
 6. The system of claim 1 wherein the medical device is capableof initiating communication with the communication device duringoutbound listening periods at selected time intervals, wherein thecommunication device additionally comprises: a) a CD clock system; b) aCD monitoring system that monitors a CD time, based on the CD clocksystem, that corresponds to a selected portion of a message received bythe CD telemetry system from the MD telemetry system; and c) a CDcontrol system for effectively comparing the CD time to an anticipatedoutbound transmission start time by the MD telemetry system for thatselected portion of the message to adaptively adjust a subsequentoutbound listening period based, at least in part, on the comparison ofthe CD time to the anticipated outbound transmission start time.
 7. Thesystem of claim 6 wherein the adjustment of the subsequent outboundlistening period lengthens the period.
 8. The system of claim 6 whereinthe adjustment of the subsequent outbound listening period shifts anoutbound listening start time of the subsequent outbound listeningperiod.
 9. The system of claim 1 wherein the outbound listening periodsare activated no more than once every ten seconds.
 10. The system ofclaim 9 wherein the outbound listening periods are activated no morethan once every 30 seconds.
 11. The system of claim 10 wherein theoutbound listening periods, during normal operation, are activated atleast once every 10 minutes.
 12. The system of claim 11 wherein outboundlistening periods, during normal operation, are activated at least onceevery 2 minutes.
 13. The system of claim 1 wherein the MD telemetrysystem activates a window for receiving messages from the CD telemetrysystem during prescribed inbound listening periods and whereinsuccessive prescribed inbound listening periods are separated by asmaller interval than an interval that separates successive outboundlistening periods.
 14. The system of claim 1 wherein the medical devicecomprises at least one of (1) an implantable infusion pump forselectively dispensing a selected drug, (2) an implantable infusion pumpfor selectively dispensing insulin, (3) an implantable sensor forsensing a selected state of the body, (4) an implantable sensor forsensing glucose level, or (5) an implantable electrode for selectivelystimulating a portion of the body of the patient.
 15. A medical system,comprising: a) an ambulatory medical device (MD) comprising MDelectronic control circuitry that further comprises at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and b) a communication device (CD) comprising CD electroniccontrol circuitry that further comprises at least one CD telemetrysystem and at least one CD processor that controls, at least in part,operation of the CD telemetry system and operation of the communicationdevice, wherein the CD telemetry system sends messages to or receivesmessages from the MD telemetry system, wherein the CD telemetry systemdoes not send out a message as the message is generated but insteaddelays the sending out of a message until a next prescribed inboundtransmission start time occurs.
 16. The system of claim 15 wherein afirst portion of the MD telemetry system is incorporated into the MDprocessor and a second portion of the MD telemetry system is external tothe MD processor, or wherein a first portion of the CD telemetry systemis incorporated into the CD processor and a second portion of the CDtelemetry system is external to the CD processor.
 17. The system ofclaim 16 wherein (1) the MD electronic control circuitry comprises atleast one external MD functional module, other than the second portionof the MD telemetry system, that is external to the MD processor, (2)the CD electronic control circuitry comprises at least one external CDfunctional module, other than the second portion of the CD telemetrysystem, that is external to the CD processor, (3) the MD processorcomprises an internal MD CPU and at least one other internal MDfunctional module, or (4) the CD processor comprises an internal CD CPUand at least one other internal CD functional module.
 18. The system ofclaim 15 wherein potential prescribed inbound transmission start timesoccur at regularly spaced intervals times.
 19. The system of claim 15wherein messages include a preamble and the sending attempts to send outof messages at the prescribed inbound transmission start times occurusing preambles that occupy prescribed inbound transmission periods. 20.The system of claim 19 wherein the MD telemetry system only listens forcommunications coming from the CD telemetry system during prescribedinbound listening periods.
 21. The system of claim 20 wherein aprescribed inbound listening period is increased after one or morefailed attempts to communicate with the MD telemetry system.
 22. Thesystem of claim 21 wherein the increased prescribed inbound listeningperiod is set to a time at least as large as an anticipated maximum timebetween successive inbound listening periods during which the MDtelemetry system is believed to be listening.
 23. The system of claim 20wherein a size of the prescribed inbound listening period is selectedbased, at least in part, on the lapsed time between the a lastsuccessful communication and the a present time.
 24. The system of claim15 wherein the prescribed inbound listening periods are at least aportion of the time set to an amount of time that is less than aninterval between the successive potential prescribed inboundtransmission start times.
 25. The system of claim 15 wherein the medicaldevice comprises at least one of (1) an implantable infusion pump forselectively dispensing a selected drug, (2) an implantable infusion pumpfor selectively dispensing insulin, (3) an implantable sensor forsensing a selected state of the body, (4) an implantable sensor forsensing glucose level, or (5) an implantable electrode for selectivelystimulating a portion of the body of the patient.
 26. A medical system,comprising: a) an ambulatory medical device (MD) comprising MDelectronic control circuitry that further comprises at least one MDtelemetry system and at least one MD processor that controls, at leastin part, operation of the MD telemetry system and operation of themedical device, wherein the medical device is configured to provide atreatment to a body of a patient or to monitor a selected state of thebody; and b) a communication device (CD) comprising CD electroniccontrol circuitry that further comprises at least one CD telemetrysystem and at least one CD processor that controls, at least in part,operation of the CD telemetry system and operation of the communicationdevice, wherein the CD telemetry system sends messages to or receivesmessages from the MD telemetry system, wherein the MD telemetry systemlistens for any messages coming from the CD telemetry system beginningonly at prescribed inbound listening start times for prescribed inboundlistening periods.
 27. The system of claim 26 wherein a first portion ofthe MD telemetry system is incorporated into the MD processor and asecond portion of the MD telemetry system is external to the MDprocessor, or wherein a first portion of the CD telemetry system isincorporated into the CD processor and a second portion of the CDtelemetry system is external to the CD processor.
 28. The system ofclaim 27 wherein (1) the MD electronic control circuitry comprises atleast one external MD functional module, other than the second portionof the MD telemetry system, that is external to the MD processor, (2)the CD electronic control circuitry comprises at least one external CDfunctional module, other than the second portion of the CD telemetrysystem, that is external to the CD processor, (3) the MD processorcomprises an internal MD CPU and at least one other internal MDfunctional module, or (4) the CD processor comprises an internal CD CPUand at least one other internal CD functional module.
 29. The system ofclaim 26 wherein the communication device anticipates the prescribedinbound listening periods during which the medical device is listeningfor incoming messages and sets inbound transmission start times ofmessages to correspond to the anticipated prescribed inbound listeningperiods of the medical device during the selected intervals.
 30. Thesystem of claim 26 wherein the MD telemetry system listens no more thanfive times per second.
 31. The system of claim 30 wherein the MDtelemetry system listens no more than once per second.
 32. The system ofclaim 31 wherein the MD telemetry system listens no less than once per30 seconds.
 33. The system of claim 32 wherein the MD telemetry systemlistens no less than once per five seconds.
 34. The system of claim 25wherein the prescribed inbound listening period is no more than 100milliseconds.
 35. The system of claim 34 wherein the prescribed inboundlistening period is no more than 25 milliseconds.
 36. The system ofclaim 35 wherein the prescribed inbound listening period is no more than6 milliseconds.
 37. The system of claim 26 wherein the prescribedinbound listening period is less than 10% of an interval betweensuccessive inbound listening start times.
 38. The system of claim 34wherein the listening time is less than 1% of an interval betweensuccessive inbound listening start times.
 39. The system of claim 35wherein the listening time is less than 0.5% of the interval betweensuccessive inbound listening start times.
 40. The system of claim 26wherein intervals between successive inbound listening start times aredifferent for at least two operational states of the medical device. 41.The system of claim 40 wherein the successive inbound listening starttimes occur less than once every five seconds when the medical device isin a non-medically functional mode and occur no less than once everyfive seconds when the medical device is in a medically functional mode.42. The system of claim 26 wherein the medical device comprises at leastone of (1) an implantable infusion pump for selectively dispensing aselected drug, (2) an implantable infusion pump for selectivelydispensing insulin, (3) an implantable sensor for sensing a selectedstate of the body, (4) an implantable sensor for sensing glucose level,or (5) an implantable electrode for selectively stimulating a portion ofthe body of the patient.
 43. The system of claim 25 wherein theprescribed inbound listening start times and prescribed inboundlistening periods and preselected intervals are determined and activatedautomatically without microprocessor intervention.